X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=client.c;h=2d6ef31f590bca1736d458cc61c4fbe67459641b;hp=90dc432b8829426cd9d4ce081e4f8e20a5fb194e;hb=e2eebf654cae2fc004cee516a0e165127c0214ca;hpb=484e75562df55dca31ffcb9e5b05a490b4a3d3a1 diff --git a/client.c b/client.c index 90dc432b..2d6ef31f 100644 --- a/client.c +++ b/client.c @@ -445,11 +445,9 @@ static int client_i9e_line_handler(char *line) int ret; client_disconnect(ct); - if (!line || !*line) - return 0; - PARA_DEBUG_LOG("line handler: %s\n", line); + PARA_DEBUG_LOG("line: %s\n", line); ret = make_client_argv(line); - if (ret < 0) + if (ret <= 0) return ret; ret = client_connect(ct, &sched, NULL, NULL); if (ret < 0) @@ -477,7 +475,7 @@ __noreturn static void interactive_session(void) .completers = completers, }; - PARA_NOTICE_LOG("\n%s\n", VERSION_TEXT("client")); + PARA_NOTICE_LOG("\n%s\n", version_text("client")); if (ct->conf.history_file_given) history_file = para_strdup(ct->conf.history_file_arg); else {