OSDN Git Service

ash: randmconfig fix
authorDenys Vlasenko <vda.linux@googlemail.com>
Sat, 28 Nov 2009 23:12:30 +0000 (00:12 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 28 Nov 2009 23:12:30 +0000 (00:12 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/ash.c

index 1cfef27..dac7318 100644 (file)
@@ -13301,7 +13301,7 @@ int ash_main(int argc UNUSED_PARAM, char **argv)
        }
 
        if (sflag || minusc == NULL) {
-#if MAX_HISTORY > 0 && ENABLE_FEATURE_EDITING_SAVEHISTORY
+#if defined MAX_HISTORY && MAX_HISTORY > 0 && ENABLE_FEATURE_EDITING_SAVEHISTORY
                if (iflag) {
                        const char *hp = lookupvar("HISTFILE");
                        if (hp)