mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 10:52:08 +02:00
Update packages.c
This commit is contained in:
@@ -14,7 +14,7 @@ static uint32_t get_num_elements(const char* dirname, int type) {
|
||||
if(dirp == NULL)
|
||||
return 0;
|
||||
|
||||
while((entry = readdir(dirp)) != NULL){
|
||||
while((entry = readdir(dirp)) != NULL) {
|
||||
if(entry->d_type == type)
|
||||
++num_elements;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user