npapi-vlc | branch: cleanup | Hugo Beauzée-Luyssen <[email protected]> | 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) ) _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
