summaryrefslogtreecommitdiffstats
path: root/test/test.c
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2019-01-23 11:29:45 +0100
committerDamiano Galassi <[email protected]>2019-01-23 11:29:45 +0100
commit27080c705403de6eaf7c436e5a5711384a9d81ae (patch)
tree1cacbebf62cdda8cd15629660fe7c76ce6a7616e /test/test.c
parent557a3311639315422e71145038d617e4d9e49dcd (diff)
Fix a few warnings.
Diffstat (limited to 'test/test.c')
-rw-r--r--test/test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test.c b/test/test.c
index 9fac8d482..49cb8af3c 100644
--- a/test/test.c
+++ b/test/test.c
@@ -197,7 +197,7 @@ static volatile int work_done = 0;
static void SigHandler( int );
/* Utils */
-static void ShowHelp();
+static void ShowHelp(void);
static void ShowCommands()
{
fprintf(stdout, "\nCommands:\n");
@@ -2832,6 +2832,7 @@ static int ParseOptions( int argc, char ** argv )
case PAD:
{
free(pad);
+ pad = NULL;
if (optarg != NULL)
{
pad = strdup(optarg);