do not die upon wront input when in remote mode
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Tue, 3 May 2005 20:23:05 +0000 (20:23 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Tue, 3 May 2005 20:23:05 +0000 (20:23 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@483 a5681a0c-68f1-0310-ab6d-d61299d08faa

src/rrd_tool.c

index c123baf..bfae7cf 100644 (file)
@@ -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