-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pterm: patch null check in dtnetsubs
- Loading branch information
1 parent
20778df
commit 0c4fe8a
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
pkgs/by-name/pt/pterm/0001-dtnetsubs-remove-null-check.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) | ||
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters