From: Alan Cox Date: Thu, 8 Feb 2018 22:33:40 +0000 (+0000) Subject: du: sort if and bracketing X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=beac2452b10cdcad4ba42b3a484c6c357eb9ee4b;p=FUZIX.git du: sort if and bracketing --- diff --git a/Applications/util/du.c b/Applications/util/du.c index 4d841ad7..3fbead90 100644 --- a/Applications/util/du.c +++ b/Applications/util/du.c @@ -155,7 +155,7 @@ long dodir(char *d, int thislev, dev_t dev) * directory should not already have been done. */ maybe_print = !silent; - if (dir = opendir(d) == NULL) break; + if ((dir = opendir(d)) == NULL) break; while ((entry = readdir(dir)) != NULL) { if (strcmp(entry->d_name, ".") == 0 || strcmp(entry->d_name, "..") == 0)