From d053f53fdd355dc32ada9f9a94cad7821d8b70e3 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Thu, 24 Mar 2011 14:24:11 -0700 Subject: [PATCH] rgw: fix str_to_bool --- src/rgw/rgw_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_common.h b/src/rgw/rgw_common.h index 04611c8e92b..de03ace16ad 100644 --- a/src/rgw/rgw_common.h +++ b/src/rgw/rgw_common.h @@ -326,7 +326,7 @@ static inline int rgw_str_to_bool(const char *s, int def_val) return (strcasecmp(s, "on") == 0 || strcasecmp(s, "yes") == 0 || - strcasecmp(s, "1")); + strcasecmp(s, "1") == 0); } /** */