From 961b168b2ceb8403c8b53c5a4d58184923a4b116 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Tue, 4 Jul 2017 15:22:55 +0200 Subject: xdu: don't compare char with pointer --- xdu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xdu.c b/xdu.c index f410ba2..8d5f4f4 100644 --- a/xdu.c +++ b/xdu.c @@ -268,7 +268,7 @@ parse_entry(char *name, off_t size) arg = 0; indx = 0; bzero(path,sizeof(path)); bzero(buf,sizeof(buf)); - while (*name != NULL) { + while (*name) { if (*name == '/') { buf[indx] = 0; path[arg++] = strdup(buf); -- cgit 1.4.1