From: marshmellow42 Date: Tue, 16 Feb 2016 03:31:21 +0000 (-0500) Subject: fix char* pointer not assigned X-Git-Tag: v2.3.0~6^2~2 X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/0c50084a2b7f5172796582441c3ce9204a752fc8?ds=sidebyside;hp=-c fix char* pointer not assigned fix --- 0c50084a2b7f5172796582441c3ce9204a752fc8 diff --git a/client/cmddata.c b/client/cmddata.c index 55e2daca..f4e16175 100644 --- a/client/cmddata.c +++ b/client/cmddata.c @@ -919,7 +919,8 @@ int CmdDetectClockRate(const char *Cmd) 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";