]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/proxmark3.c
CHG: Updated the CHANGELOG.md
[proxmark3-svn] / client / proxmark3.c
index c2e70acfd0b3c77344e5099eae22a9b0043b592e..0fa554259425274419a0f45bc0836c04ad257259 100644 (file)
@@ -154,6 +154,8 @@ static void *main_loop(void *targ) {
                        cmd = readline(PROXPROMPT);
                }
                
+               // this one should pick up all non-null cmd...
+               // why is there a 
                if (cmd) {
 
                        while(cmd[strlen(cmd) - 1] == ' ')
@@ -168,6 +170,7 @@ static void *main_loop(void *targ) {
                                        break;
                        }
                        free(cmd);
+                       cmd = 0;
                } else {
                        printf("\n");
                        break;
@@ -182,6 +185,7 @@ static void *main_loop(void *targ) {
        write_history(".history");
 
        free(cmd);
+       cmd = 0;
                        
        if (arg->usb_present == 1) {
                rarg.run = 0;
Impressum, Datenschutz