aboutsummaryrefslogtreecommitdiff
path: root/i3-config-wizard
diff options
context:
space:
mode:
authorOrestis Floros <orestisf1993@gmail.com>2018-08-01 18:08:26 +0300
committerOrestis Floros <orestisf1993@gmail.com>2018-10-13 21:10:09 +0300
commit50880db2c554ad73d5524ef21d376fab25129a5d (patch)
tree87791b21d4b10dc55538404793192092ae9f5cbd /i3-config-wizard
parent565d38c5af0827147ec0bdef3c1897006d831b18 (diff)
downloadi3-50880db2c554ad73d5524ef21d376fab25129a5d.tar.gz
i3-50880db2c554ad73d5524ef21d376fab25129a5d.zip
Reduce some code around frees
Diffstat (limited to 'i3-config-wizard')
-rw-r--r--i3-config-wizard/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/i3-config-wizard/main.c b/i3-config-wizard/main.c
index 0c8c705a..988654d2 100644
--- a/i3-config-wizard/main.c
+++ b/i3-config-wizard/main.c
@@ -216,7 +216,7 @@ static const char *get_string(const char *identifier) {
static void clear_stack(void) {
for (int c = 0; c < 10; c++) {
- if (stack[c].type == STACK_STR && stack[c].val.str != NULL)
+ if (stack[c].type == STACK_STR)
free(stack[c].val.str);
stack[c].identifier = NULL;
stack[c].val.str = NULL;