diff options
author | Guy Harris <gharris@sonic.net> | 2020-07-03 05:33:46 -0700 |
---|---|---|
committer | Guy Harris <gharris@sonic.net> | 2020-07-03 05:33:46 -0700 |
commit | 6c893c132cbf8a8b1f9acfe909a45bfee230ba81 (patch) | |
tree | e909f53ae24a1a299aac983a9303c40e611e3ef1 /testprogs/writecaptest.c | |
parent | 141253c471119db0761d73c2fc095b82a2017eb3 (diff) |
Initialize snaplen.
That shouldn't be necessary, but it avoids compiler warnings with older
versions of Visual Studio.
Diffstat (limited to 'testprogs/writecaptest.c')
-rw-r--r-- | testprogs/writecaptest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testprogs/writecaptest.c b/testprogs/writecaptest.c index 7d317732..38e2b4a1 100644 --- a/testprogs/writecaptest.c +++ b/testprogs/writecaptest.c @@ -83,7 +83,7 @@ main(int argc, char **argv) { int op; char *cp, *cmdbuf = NULL, *device, *end, *savefile = NULL; - int snaplen; + int snaplen = 0; int snaplen_set = 0; pcap_if_t *devlist; int show_dlt_types = 0; |