aboutsummaryrefslogtreecommitdiffstats
path: root/service/src/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'service/src/util.c')
-rw-r--r--service/src/util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/service/src/util.c b/service/src/util.c
index d8b9c98..833c373 100644
--- a/service/src/util.c
+++ b/service/src/util.c
@@ -49,6 +49,7 @@ mhash(const char *str, int len)
int i, k, v;
char c, *bp;
+ if (!str || !*str) str = ".";
if (len == -1) len = strlen(str);
for (v = 0, i = 0; i < len; i++) v += str[i];