From ca0ed2831b0d33b2a0b5b9c05d71997efd6cde51 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Thu, 7 May 2020 20:32:51 -0700 Subject: 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. --- testprogs/writecaptest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testprogs/writecaptest.c') 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; -- cgit v1.2.3