pterm: patch null check in dtnetsubs

+18
+16
pkgs/by-name/pt/pterm/0001-dtnetsubs-remove-null-check.patch
··· 1 + diff --git a/dtnetsubs.c b/dtnetsubs.c 2 + index ad1c30d..c1fda9b 100644 3 + --- a/dtnetsubs.c 4 + +++ b/dtnetsubs.c 5 + @@ -865,10 +865,7 @@ int dtSend (NetFet *fet, const void *buf, int len) 6 + ** Update the IN pointer, then wake the send thread. 7 + */ 8 + fet->sendin = in; 9 + - if (ssemp (fet) != NULL) 10 + - { 11 + - sem_post (ssemp (fet)); 12 + - } 13 + + sem_post (ssemp (fet)); 14 + 15 + if (dtSendFree (fet) == 0) 16 + {
+2
pkgs/by-name/pt/pterm/package.nix
··· 17 17 hash = "sha256-0OJvoCOGx/a51Ja7n3fOTeQJEcdyn/GhaJ0NtVCyuC8="; 18 18 }; 19 19 20 + patches = [ ./0001-dtnetsubs-remove-null-check.patch ]; 21 + 20 22 preBuild = '' 21 23 substituteInPlace Makefile.common Makefile.wxpterm --replace "/bin/echo" "echo" 22 24 echo "exit 0" > wxversion.py