From 4b92edda23ae263000414a98e037c5b9c226dd5f Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 17 Aug 2011 15:50:11 +0200 Subject: [PATCH] zoomsh: fix SEGV for set command wo value --- zoom/zoomsh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zoom/zoomsh.c b/zoom/zoomsh.c index fea2181..2126f30 100644 --- a/zoom/zoomsh.c +++ b/zoom/zoomsh.c @@ -120,7 +120,7 @@ static void cmd_set(ZOOM_connection *c, ZOOM_resultset *r, return ; } val_len = next_token_chars(args, &val_buf, ""); - if (val_len) + if (val_len != -1) ZOOM_options_setl(options, wrbuf_cstr(key), val_buf, val_len); else ZOOM_options_set(options, wrbuf_cstr(key), 0); -- 1.7.10.4