diff options
author | Guy Harris <guy@alum.mit.edu> | 2020-05-07 20:32:51 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2020-05-07 20:32:51 -0700 |
commit | ca0ed2831b0d33b2a0b5b9c05d71997efd6cde51 (patch) | |
tree | c6618ebc83bf1093275783c7fd5a9b953c839d19 /testprogs/writecaptest.c | |
parent | facf6598c40901f390b9043f91eebe3f86d8580a (diff) |
Initialize a variable.
If no -w flag is supplied, it's not set by the argument parsing code, so
we need to initialize it to null first.
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 947904a3..3c12f241 100644 --- a/testprogs/writecaptest.c +++ b/testprogs/writecaptest.c @@ -82,7 +82,7 @@ int main(int argc, char **argv) { register int op; - register char *cp, *cmdbuf, *device, *savefile; + register char *cp, *cmdbuf, *device, *savefile = NULL; pcap_if_t *devlist; int show_dlt_types = 0; int ndlts; |