aboutsummaryrefslogtreecommitdiffstats
path: root/service
diff options
context:
space:
mode:
Diffstat (limited to 'service')
-rw-r--r--service/src/.gitignore1
-rw-r--r--service/src/util.c1
2 files changed, 1 insertions, 1 deletions
diff --git a/service/src/.gitignore b/service/src/.gitignore
deleted file mode 100644
index 378eac2..0000000
--- a/service/src/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-build
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];