aboutsummaryrefslogtreecommitdiffstats
path: root/service/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'service/src/main.c')
-rw-r--r--service/src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/service/src/main.c b/service/src/main.c
index d84a460..dd8bca9 100644
--- a/service/src/main.c
+++ b/service/src/main.c
@@ -348,7 +348,7 @@ search_cmd(const char *arg)
while (1) {
resp = ask("> Enter %s [q to quit]: ",
resp ? "another" : "hash");
- if (strchr(resp, 'q')) break;
+ if (strchr(resp, 'q') || !*resp) break;
if (checkalph(resp, ".abcdef0123456789-") != OK) {
ERR("Invalid model id specified\n");
goto exit;