Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'agent/tcf/main')
-rw-r--r--agent/tcf/main/main.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/agent/tcf/main/main.c b/agent/tcf/main/main.c
index c43bf3b9..45b3680b 100644
--- a/agent/tcf/main/main.c
+++ b/agent/tcf/main/main.c
@@ -196,11 +196,8 @@ int main(int argc, char ** argv) {
/* Parse arguments */
for (ind = 1; ind < argc; ind++) {
char * s = argv[ind];
- if (*s != '-') {
- break;
- }
- s++;
- while ((c = *s++) != '\0') {
+ if (*s++ != '-') break;
+ while (s && (c = *s++) != '\0') {
switch (c) {
case 'i':
interactive = 1;
@@ -279,7 +276,7 @@ int main(int argc, char ** argv) {
break;
#endif
}
- s = "";
+ s = NULL;
break;
default:

Back to the top