Mercurial > hg > sidinfo
diff sidinfo.c @ 339:923e63b9653b
Cleanup.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 13 Jan 2020 15:14:16 +0200 |
parents | 7ad937740139 |
children | 6f8c431a3040 |
line wrap: on
line diff
--- a/sidinfo.c Mon Jan 13 14:47:39 2020 +0200 +++ b/sidinfo.c Mon Jan 13 15:14:16 2020 +0200 @@ -1117,7 +1117,7 @@ BOOL argHandleFile(char *path) { - char *pattern = NULL, *filename = NULL, *pt, *npath; + char *pattern, *filename, *pt, *npath; BOOL ret; if ((npath = th_strdup(path)) == NULL) @@ -1137,6 +1137,7 @@ } // Check if we have glob pattern chars + pattern = filename = NULL; if (pt != NULL && *pt != 0) { if (strchr(pt, '*') || strchr(pt, '?'))