diff options
Diffstat (limited to 'utils.c')
-rw-r--r-- | utils.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -135,8 +135,7 @@ debug_resource_usage() debug(DBG_MALLOC, "Open files:"); while ((dent = readdir(dir)) != NULL) { - if (!strcmp(dent->d_name, ".") || - !strcmp(dent->d_name, "..")) + if (streq(dent->d_name, ".") || streq(dent->d_name, "..")) continue; r = readlinkat(dirfd(dir), dent->d_name, buf, sizeof(buf)); |