Mercurial > hg > sidinfo
changeset 238:2ed665b74043
Cleanup.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 04 Jan 2020 14:34:09 +0200 |
parents | d28f3d537284 |
children | 82540f819194 |
files | sidinfo.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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