Global: major FFlist related code refactor

This commit is contained in:
李通洲
2023-04-21 22:41:32 +08:00
parent 6d002c175f
commit 39582471e8
14 changed files with 43 additions and 37 deletions
+1 -2
View File
@@ -201,8 +201,7 @@ void ffDetectDisksImpl(FFDiskResult* disks)
return;
}
FF_LIST_AUTO_DESTROY devices;
ffListInit(&devices, sizeof(FFstrbuf));
FF_LIST_AUTO_DESTROY devices = ffListCreate(sizeof(FFstrbuf));
char* line = NULL;
size_t len = 0;