From 0f29f048167739c6f92d241d2aacbfcf6972c39c Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Wed, 19 Aug 2015 08:24:39 -0400 Subject: [PATCH] Set test to NULL when appropriate Thanks @SyedAmerGilani --- sway/config.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sway/config.c b/sway/config.c index e74bfb65..f38e37b6 100644 --- a/sway/config.c +++ b/sway/config.c @@ -124,6 +124,7 @@ static char *get_config_path() { return test; } free(test); + test = NULL; } free_flat_list(paths); }