about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-07-04 15:22:55 +0200
committerLeah Neukirchen <leah@vuxu.org>2017-07-04 15:22:55 +0200
commit961b168b2ceb8403c8b53c5a4d58184923a4b116 (patch)
tree6627a6f13675c32915013d1fb1e00e97f9f55052
parent01edba4854e07cfc42241591fe78215ebf03b50d (diff)
downloadxdu-961b168b2ceb8403c8b53c5a4d58184923a4b116.tar.gz
xdu-961b168b2ceb8403c8b53c5a4d58184923a4b116.tar.xz
xdu-961b168b2ceb8403c8b53c5a4d58184923a4b116.zip
xdu: don't compare char with pointer
-rw-r--r--xdu.c2
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);