[vlc-commits] npapi: utils: Fix string to bool cast
Hugo Beauzée-Luyssen
git at videolan.org
Tue Mar 31 10:51:55 CEST 2015
npapi-vlc | branch: cleanup | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Mar 26 18:02:53 2015 +0100| [37649970db7a7a94bc37edaac6a09605d69644b5] | committer: Hugo Beauzée-Luyssen
npapi: utils: Fix string to bool cast
> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=37649970db7a7a94bc37edaac6a09605d69644b5
---
npapi/utils.hpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/npapi/utils.hpp b/npapi/utils.hpp
index 0310297..5298ee1 100644
--- a/npapi/utils.hpp
+++ b/npapi/utils.hpp
@@ -93,7 +93,7 @@ inline bool to_bool( const NPVariant& v )
}
else if( NPVARIANT_IS_STRING(v) )
{
- if(!strcasecmp(NPVARIANT_TO_STRING(v).UTF8Characters, "true"))
+ if( !strcmp( NPVARIANT_TO_STRING(v).UTF8Characters, "1" ) )
return true;
}
else if ( NPVARIANT_IS_INT32(v) )
More information about the vlc-commits
mailing list