diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/fe-common/core/themes.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/fe-common/core/themes.c b/src/fe-common/core/themes.c index 53d5e262..b4407bda 100644 --- a/src/fe-common/core/themes.c +++ b/src/fe-common/core/themes.c @@ -1249,12 +1249,13 @@ static void sig_complete_format(GList **list, WINDOW_REC *window, ptr = line; words = 0; - do { - ptr++; - - words++; - ptr = strchr(ptr, ' '); - } while (ptr != NULL); + if (*ptr != '\0') { + do { + ptr++; + words++; + ptr = strchr(ptr, ' '); + } while (ptr != NULL); + } if (words > 2) return; |