aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--extcap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extcap.c b/extcap.c
index 92c3323461..013389c0fc 100644
--- a/extcap.c
+++ b/extcap.c
@@ -779,7 +779,7 @@ gboolean extcap_create_pipe(char ** fifo)
gchar *temp_name = NULL;
int fd = 0;
- if ( ( fd = create_tempfile ( &temp_name, EXTCAP_PIPE_PREFIX ) ) == 0 )
+ if ((fd = create_tempfile(&temp_name, EXTCAP_PIPE_PREFIX)) < 0 )
return FALSE;
ws_close(fd);