aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cmd/ls.C2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/ls.C b/src/cmd/ls.C
index 8bdeab61..4423a877 100644
--- a/src/cmd/ls.C
+++ b/src/cmd/ls.C
@@ -282,7 +282,7 @@ compar(NDir *a, NDir *b)
i = strcmp(ad->name, bd->name);
}
if(i == 0)
- i = (a<b? -1 : 1);
+ i = (ad<bd? -1 : 1);
if(rflag)
i = -i;
return i;