From 702044bd88a0752545fbe969b1248fcf97e11064 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Sun, 7 Mar 2021 09:15:51 -0500 Subject: [PATCH] TT#111357 fix infinite loop closes #1205 Change-Id: I45b1506f6eab83841a4dee0a2b87e036b7ab2f5c --- recording-daemon/output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recording-daemon/output.c b/recording-daemon/output.c index b8dec15ec..2bf9bd8d7 100644 --- a/recording-daemon/output.c +++ b/recording-daemon/output.c @@ -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;