forked from osmocom/wireshark
GTK: fix a V610 warning reported by PVS-Studio
Unspecified behavior. Check the shift operator '>>'. The left operand '(- 1)' is negative. Change-Id: I508d451736830a150b8839aa6353ee4c7bcf848f Reviewed-on: https://code.wireshark.org/review/8859 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
This commit is contained in:
parent
4e60e8fb39
commit
0d471c3d88
|
@ -2523,7 +2523,7 @@ copy_file(gchar *dest, gint channels, gint format, user_data_t *user_data)
|
|||
if (nchars != 4)
|
||||
goto copy_file_err;
|
||||
/* total length; it is permitted to set this to 0xffffffff */
|
||||
phton32(pd, -1);
|
||||
phton32(pd, 0xffffffff);
|
||||
nchars = fwrite(pd, 1, 4, to_stream);
|
||||
if (nchars != 4)
|
||||
goto copy_file_err;
|
||||
|
|
Loading…
Reference in New Issue