FIX: GenerateFilename() return broken filename if no tag is detected.
This commit is contained in:
1 parent
45c20d62b8
commit
8e04df77ba
1 file changed
+2
-1
+2
-1
@@ -364,7 +364,8 @@ char * GenerateFilename(const char *prefix, const char *suffix){
|
||||
int uidlen=0;
|
||||
char * fptr = malloc (sizeof (char) * (strlen(prefix) + strlen(suffix)) + sizeof(uid)*2 + 1);
|
||||
|
||||
if (!GetHFMF14AUID(uid, &uidlen)) {
|
||||
GetHFMF14AUID(uid, &uidlen);
|
||||
if (!uidlen) {
|
||||
PrintAndLog("No tag found.");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user