summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sim.c b/src/sim.c
index 7f905b1a..2d15adf1 100644
--- a/src/sim.c
+++ b/src/sim.c
@@ -286,7 +286,7 @@ static int create_dirs(const char *filename, const mode_t mode)
dir = g_malloc(strlen(filename) + 1);
strcpy(dir, "/");
- for (prev = filename; next = strchr(prev + 1, '/'); prev = next)
+ for (prev = filename; (next = strchr(prev + 1, '/')); prev = next)
if (next > prev + 1) {
strncat(dir, prev + 1, next - prev);