Show "NOLABEL" for unlabeled SDs

This commit is contained in:
d0k3 2019-06-30 23:44:57 +02:00
parent 4e61bcaa50
commit 9a7ff738be

View File

@ -84,7 +84,7 @@ bool GetRootDirContentsWorker(DirStruct* contents) {
u32 n_entries = 0;
char sdlabel[16];
if (!GetFATVolumeLabel("0:", sdlabel))
if (!GetFATVolumeLabel("0:", sdlabel) || !(*sdlabel))
snprintf(sdlabel, 16, "NOLABEL");
char carttype[16];