pterm: patch null check in dtnetsubs
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
diff --git a/dtnetsubs.c b/dtnetsubs.c
|
||||
index ad1c30d..c1fda9b 100644
|
||||
--- a/dtnetsubs.c
|
||||
+++ b/dtnetsubs.c
|
||||
@@ -865,10 +865,7 @@ int dtSend (NetFet *fet, const void *buf, int len)
|
||||
** Update the IN pointer, then wake the send thread.
|
||||
*/
|
||||
fet->sendin = in;
|
||||
- if (ssemp (fet) != NULL)
|
||||
- {
|
||||
- sem_post (ssemp (fet));
|
||||
- }
|
||||
+ sem_post (ssemp (fet));
|
||||
|
||||
if (dtSendFree (fet) == 0)
|
||||
{
|
||||
@@ -17,6 +17,8 @@ stdenv.mkDerivation rec {
|
||||
hash = "sha256-0OJvoCOGx/a51Ja7n3fOTeQJEcdyn/GhaJ0NtVCyuC8=";
|
||||
};
|
||||
|
||||
patches = [ ./0001-dtnetsubs-remove-null-check.patch ];
|
||||
|
||||
preBuild = ''
|
||||
substituteInPlace Makefile.common Makefile.wxpterm --replace "/bin/echo" "echo"
|
||||
echo "exit 0" > wxversion.py
|
||||
|
||||
Reference in New Issue
Block a user