diff options
author | Leah Neukirchen <leah@vuxu.org> | 2017-07-04 15:22:55 +0200 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2017-07-04 15:22:55 +0200 |
commit | 961b168b2ceb8403c8b53c5a4d58184923a4b116 (patch) | |
tree | 6627a6f13675c32915013d1fb1e00e97f9f55052 | |
parent | 01edba4854e07cfc42241591fe78215ebf03b50d (diff) | |
download | xdu-961b168b2ceb8403c8b53c5a4d58184923a4b116.tar.gz xdu-961b168b2ceb8403c8b53c5a4d58184923a4b116.tar.xz xdu-961b168b2ceb8403c8b53c5a4d58184923a4b116.zip |
xdu: don't compare char with pointer
-rw-r--r-- | xdu.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |