diff options
Diffstat (limited to 'xprop.c')
-rw-r--r-- | xprop.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -750,10 +750,14 @@ is_utf8_locale (void) static const char * Format_Icons (const unsigned long *icon, int len) { - char *result = NULL, *tail = NULL; + static char *result = NULL; + char *tail = NULL; int alloced; const unsigned long *end = icon + len / sizeof (unsigned long); + free(result); + result = NULL; + alloced = 0; while (icon < end) |