summaryrefslogtreecommitdiffstats
path: root/source/widgets/textbox.c
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2016-10-22 21:34:19 +0200
committerDave Davenport <qball@gmpclient.org>2016-10-22 21:34:19 +0200
commitd25ad4dac61cf4667118c8300dc12461ab9cd735 (patch)
tree6d28ff7c88e4cf66495fffc8e6b133602bdc4b37 /source/widgets/textbox.c
parent8d39b0e03565df636dd3971669a058d020a7d411 (diff)
clang-check fix.
Diffstat (limited to 'source/widgets/textbox.c')
-rw-r--r--source/widgets/textbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/widgets/textbox.c b/source/widgets/textbox.c
index db4c847f..159eb846 100644
--- a/source/widgets/textbox.c
+++ b/source/widgets/textbox.c
@@ -449,7 +449,7 @@ static void textbox_cursor_inc_word ( textbox *tb )
break;
}
}
- if ( *c == '\0' ) {
+ if ( c == NULL || *c == '\0' ) {
return;
}
while ( ( c = g_utf8_next_char ( c ) ) ) {