TT#111357 fix infinite loop

closes #1205

Change-Id: I45b1506f6eab83841a4dee0a2b87e036b7ab2f5c
pull/1219/head
Richard Fuchs 5 years ago
parent 19f08a8b78
commit 702044bd88

@ -66,7 +66,7 @@ static void create_parent_dirs(char *dir) {
int existed = errno == EEXIST;
if (!existed)
ilog(LOG_WARN, "Failed to create directory '%s': %s", dir, strerror(errno));
*p = G_DIR_SEPARATOR;
*p++ = G_DIR_SEPARATOR;
if (!existed) // no point in continuing
break;
continue;

Loading…
Cancel
Save