diff options
author | Dario Lombardo <lomato@gmail.com> | 2018-05-24 09:20:24 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2018-05-24 13:57:27 +0000 |
commit | 63025ae2e190567fdd4f92d31a886dac00de427e (patch) | |
tree | 380599afe7a0df7391176a67eca65c9efb9dd636 /wsutil | |
parent | 6000b8d87277f2ba0a7540f372f176aa7766cf9d (diff) |
ws_pipe: don't check for negative number using DWORD.
DWORD on windows is unsigned, then there is no point in checking
for negative values.
Change-Id: I0b03fb19ebdff86e610cd4571fc30c49b7bd1284
Reviewed-on: https://code.wireshark.org/review/27766
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'wsutil')
-rw-r--r-- | wsutil/ws_pipe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wsutil/ws_pipe.c b/wsutil/ws_pipe.c index d09f6bfe19..bd712bcb85 100644 --- a/wsutil/ws_pipe.c +++ b/wsutil/ws_pipe.c @@ -484,7 +484,7 @@ ws_read_string_from_pipe(ws_pipe_handle read_pipe, gchar *buffer, { break; } - if (bytes_avail <= 0) + if (bytes_avail == 0) { ret = TRUE; break; |