From c9a8ebb1e22a1836588250e4e8f8f50b3d62d640 Mon Sep 17 00:00:00 2001 From: oetiker Date: Tue, 3 May 2005 20:23:05 +0000 Subject: [PATCH] do not die upon wront input when in remote mode git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@483 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/rrd_tool.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/program/src/rrd_tool.c b/program/src/rrd_tool.c index c123baf1..bfae7cf3 100644 --- a/program/src/rrd_tool.c +++ b/program/src/rrd_tool.c @@ -356,7 +356,7 @@ int main(int argc, char *argv[]) while (fgets(aLine, sizeof(aLine)-1, stdin)){ if ((argc = CountArgs(aLine)) == 0) { - fprintf(stderr,"ERROR: not enough arguments\n"); + fprintf(stderr,"ERROR: not enough arguments\n"); } if ((myargv = (char **) malloc((argc+1) * sizeof(char *))) == NULL) { @@ -368,8 +368,7 @@ int main(int argc, char *argv[]) exit(1); } - if (HandleInputLine(argc, myargv, stdout)) - exit(1); + HandleInputLine(argc, myargv, stdout); free(myargv); #if HAVE_GETRUSAGE -- 2.30.2