summaryrefslogtreecommitdiff
path: root/src/core/wee-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/wee-util.c')
-rw-r--r--src/core/wee-util.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/wee-util.c b/src/core/wee-util.c
index cd4892a7c..1e4c282f9 100644
--- a/src/core/wee-util.c
+++ b/src/core/wee-util.c
@@ -422,6 +422,9 @@ util_signal_search (const char *name)
{
int i;
+ if (!name)
+ return -1;
+
for (i = 0; util_signals[i].name; i++)
{
if (string_strcasecmp (util_signals[i].name, name) == 0)