summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <pwithnall@gnome.org>2023-12-04 12:48:53 +0000
committerPhilip Withnall <pwithnall@gnome.org>2023-12-04 12:48:53 +0000
commit7894bf3f6f80bc08321655a55af73e4ea2bf1998 (patch)
tree012efa233ce6d88339b7fca0258b5a9e286b72c3
parentc2c814d4051f23260dfacb1db1c9307ca32d8852 (diff)
print-mime-data: Remove a redundant NULL check
`d_name` is declared as a fixed size array, not a pointer, so it can never be `NULL`. This fixes a compiler warning. Signed-off-by: Philip Withnall <pwithnall@gnome.org>
-rw-r--r--src/print-mime-data.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/print-mime-data.c b/src/print-mime-data.c
index f51528e..1244655 100644
--- a/src/print-mime-data.c
+++ b/src/print-mime-data.c
@@ -140,8 +140,6 @@ read_from_dir (const char *path)
entry = readdir (dir);
while (entry != NULL) {
- if (entry->d_name == NULL)
- goto next;
if (strcmp (entry->d_name, ".") == 0 ||
strcmp (entry->d_name, "..") == 0)
goto next;