From 38cb4ac927272256b636c014a9aec1a119958fb6 Mon Sep 17 00:00:00 2001
From: Samo Penic <samo.penic@gmail.com>
Date: Sun, 15 May 2016 18:19:47 +0000
Subject: [PATCH] Added check if trisurf executable exists in path, ETA is empty or N/A at appropriate moments, PID is empty if stopped, fix in getPID (some pythons like str some functions ) ;)

---
 test/parsecmdline.c |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/test/parsecmdline.c b/test/parsecmdline.c
index cf8a41e..d15a8c8 100644
--- a/test/parsecmdline.c
+++ b/test/parsecmdline.c
@@ -6,13 +6,12 @@
 
 	char *commands, *backup, *saveptr, *saveopptr, *command, *operator[2], *operand;
 	int i,j;
-	commands=(char *)malloc(10000*sizeof(char));
-	backup=commands;
 	if(argv!=2){
 		fprintf(stderr, "Error. Usage: parsecmdline cmd1=1,cmd2=2,...\n");
 		exit(1);
 	}
-
+	commands=(char *)malloc(10000*sizeof(char));
+    backup=commands;
 	strcpy(commands,argc[1]);
 	
 
@@ -37,6 +36,5 @@
 	}
 
 	free(backup);
-
-return 0;
+    return 0;
 }

--
Gitblit v1.9.3