From: oetiker Date: Tue, 3 May 2005 20:23:05 +0000 (+0000) Subject: do not die upon wront input when in remote mode X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=b0f25f8819de548d6a31e6ce53ee9a78a2eb0272;p=rrdtool.git do not die upon wront input when in remote mode git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@483 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/src/rrd_tool.c b/src/rrd_tool.c index c123baf..bfae7cf 100644 --- a/src/rrd_tool.c +++ b/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