Fix incorrect return value in apps/apps.c:parse_yesno()

PR: 1607
Submitted by: "Christophe Macé" <mace.christophe@gmail.com>
This commit is contained in:
Lutz Jänicke 2008-04-17 14:15:29 +00:00
parent 1dff425999
commit bf2b87aea3

View File

@ -2010,7 +2010,7 @@ int parse_yesno(const char *str, int def)
case 'y': /* yes */
case 'Y': /* YES */
case '1': /* 1 */
ret = 0;
ret = 1;
break;
default:
ret = def;