diff options
author | Steven Schubiger <stsc@refcnt.org> | 2020-12-30 18:38:30 +0100 |
---|---|---|
committer | Steven Schubiger <stsc@refcnt.org> | 2020-12-30 18:38:30 +0100 |
commit | 1726f536e36e0eeef71b56390402f0b060387fa4 (patch) | |
tree | 55d443538a4ec4a13646946ff73381c0c3681caa /colorize.c | |
parent | 4709972f1cfb9f69f631207d9e8c925e9dbf0797 (diff) | |
download | colorize-1726f536e36e0eeef71b56390402f0b060387fa4.tar.gz colorize-1726f536e36e0eeef71b56390402f0b060387fa4.tar.bz2 |
release(): strengthen check for equal pointers
Diffstat (limited to 'colorize.c')
-rw-r--r-- | colorize.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1927,7 +1927,8 @@ release (struct var_list *list, unsigned int stacked, void **ptr) for (i = 0; i < stacked; i++) { struct var_list *var = &list[i]; - if (var->ptr == *ptr) + if (var->type != IS_UNUSED + && var->ptr == *ptr) { switch (var->type) { |