depot/third_party/nixpkgs/pkgs/by-name/pt/pterm/0001-dtnetsubs-remove-null-check.patch
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

16 lines
421 B
Diff

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)
{