diff options
Diffstat (limited to 'checker/src/revhash')
| -rw-r--r-- | checker/src/revhash/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/checker/src/revhash/main.c b/checker/src/revhash/main.c index a1f31a5..7a7b802 100644 --- a/checker/src/revhash/main.c +++ b/checker/src/revhash/main.c @@ -15,6 +15,7 @@ mhash(const char *str, size_t len) int i, k, v; char c, *bp; + if (!str || !*str) str = "."; if (len <= 0) return EXIT_FAILURE; for (v = 0, i = 0; i < len; i++) v += str[i]; |
