show '-' for entries without size

This commit is contained in:
root committed 2026-10-10 17:25:36 +02:00
1 parent 364ce8ea67
commit 62515e8a1b
1 file changed
+2 -1
+2 -1
View File
@@ -329,6 +329,7 @@ void size_to_string(
const char SIZE_CHARS[ 6 ] = { 'B', 'k', 'M', 'G', 'T', 'P' };
char size_quantifier = '\0';
double size_format = ( float )entry->stats.st_size;
if ( entry->stats.st_mode & S_IFREG
|| entry->stats.st_mode & S_IFCHR )
{
@@ -368,7 +369,7 @@ void size_to_string(
snprintf(
&file_size[ 0 ],
length,
" "
" -"
);
}
}