[vlc-commits] Kill a warning

Ludovic Fauvet git at videolan.org
Wed Jan 2 17:45:41 CET 2013


npapi-vlc | branch: master | Ludovic Fauvet <etix at videolan.org> | Wed Jan  2 17:45:16 2013 +0100| [cae1050c0c0126166339d4ab45399eca7cf22def] | committer: Ludovic Fauvet

Kill a warning

> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=cae1050c0c0126166339d4ab45399eca7cf22def
---

 npapi/vlcplugin_base.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/npapi/vlcplugin_base.cpp b/npapi/vlcplugin_base.cpp
index ba0b872..393afcd 100644
--- a/npapi/vlcplugin_base.cpp
+++ b/npapi/vlcplugin_base.cpp
@@ -59,7 +59,7 @@ VlcPluginBase::VlcPluginBase( NPP instance, NPuint16_t mode ) :
 }
 
 static bool boolValue(const char *value) {
-    return ( *value == NULL ||
+    return ( *value == '\0' ||
              !strcmp(value, "1") ||
              !strcasecmp(value, "true") ||
              !strcasecmp(value, "yes") );



More information about the vlc-commits mailing list