diff options
author | portix <portix@gmx.net> | 2012-03-19 09:49:09 +0100 |
---|---|---|
committer | portix <portix@gmx.net> | 2012-03-19 09:49:09 +0100 |
commit | 815922c4c7a0ff6db3f57967fd74a3bad2f7b640 (patch) | |
tree | 651206123216cdd29e6af7e33e9e74c52413962f /src/util.c | |
parent | 33e74f3f0fd1020393854143c826196ff1c00eaf (diff) | |
download | dwb-815922c4c7a0ff6db3f57967fd74a3bad2f7b640.zip |
Check if str is NULL in util_str_chug, closing #133
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -688,6 +688,8 @@ util_strlen_trailing_space(const char *str) { } const char * util_str_chug(const char *str) { + if (str == NULL) + return str; while (g_ascii_isspace(*str)) str++; return str; |