diff --git a/lcr/lcr_ifact.c b/lcr/lcr_ifact.c index b5ed62f1..b1ea5dc7 100644 --- a/lcr/lcr_ifact.c +++ b/lcr/lcr_ifact.c @@ -176,8 +176,7 @@ static void defaults_path_build (void) char *res; res = getcwd (cwd, sizeof (cwd)); - if (res != NULL) { - path_list[0] = strdup (cwd); + if (res != NULL && (path_list[0] = strdup (cwd)) != NULL) { path_list_entries++; }