]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
fix char* pointer not assigned
authormarshmellow42 <marshmellowrf@gmail.com>
Tue, 16 Feb 2016 03:31:21 +0000 (22:31 -0500)
committermarshmellow42 <marshmellowrf@gmail.com>
Tue, 16 Feb 2016 03:31:21 +0000 (22:31 -0500)
fix

client/cmddata.c

index 55e2daca4d38396320a5ce75556d292b2ab48ea7..f4e161755ef9946b49dba6e2533d68a642c8340e 100644 (file)
@@ -919,7 +919,8 @@ int CmdDetectClockRate(const char *Cmd)
 
 char *GetFSKType(uint8_t fchigh, uint8_t fclow, uint8_t invert)
 {
 
 char *GetFSKType(uint8_t fchigh, uint8_t fclow, uint8_t invert)
 {
-       char *fskType;
+       static char fType[8];
+       char *fskType = fType;
        if (fchigh==10 && fclow==8){
                if (invert) //fsk2a
                        fskType = "FSK2a";
        if (fchigh==10 && fclow==8){
                if (invert) //fsk2a
                        fskType = "FSK2a";
Impressum, Datenschutz