# HG changeset patch # User Matti Hamalainen # Date 1578141249 -7200 # Node ID 2ed665b74043d5a567c4ae7cd6be75cb12275f49 # Parent d28f3d5372843fd85ae8d1bfb44f4fee4bd55284 Cleanup. diff -r d28f3d537284 -r 2ed665b74043 sidinfo.c --- 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