kconfig: Avoid buffer underrun in choice input
[pandora-kernel.git] / scripts / kconfig / conf.c
index 659326c..006ad81 100644 (file)
@@ -332,7 +332,7 @@ static int conf_choice(struct menu *menu)
                }
                if (!child)
                        continue;
-               if (line[strlen(line) - 1] == '?') {
+               if (line[0] && line[strlen(line) - 1] == '?') {
                        print_help(child);
                        continue;
                }