diff --git a/modules/generators/mod_autoindex.c b/modules/generators/mod_autoindex.c index 2230338ea96..602b2e51ce2 100644 --- a/modules/generators/mod_autoindex.c +++ b/modules/generators/mod_autoindex.c @@ -462,8 +462,8 @@ static const char *add_opts(cmd_parms *cmd, void *d, int argc, char *const argv[ else { int width = atoi(&w[10]); - if (width && (width < 5)) { - return "NameWidth value must be greater than 5"; + if (width < 5) { + return "NameWidth value must be at least 5"; } d_cfg->name_width = width; d_cfg->name_adjust = K_NOADJUST;