Mercurial > hg > sidinfo
diff sidinfo.c @ 238:2ed665b74043
Cleanup.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 04 Jan 2020 14:34:09 +0200 |
parents | 609bfc1bd628 |
children | 217f294deea5 |
line wrap: on
line diff
--- a/sidinfo.c Sat Jan 04 13:19:35 2020 +0200 +++ b/sidinfo.c Sat Jan 04 14:34:09 2020 +0200 @@ -1148,10 +1148,10 @@ BOOL argHandleFile(char *path) { - char *pattern = NULL, *filename = NULL, *pt, *npath = th_strdup(path); + char *pattern = NULL, *filename = NULL, *pt, *npath; BOOL ret; - if (npath == NULL) + if ((npath = th_strdup(path)) == NULL) return FALSE; // Check if we have path separators