[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog plugin/plugin.cpp
From: |
Markus Gothe |
Subject: |
[Gnash-commit] gnash ChangeLog plugin/plugin.cpp |
Date: |
Mon, 24 Mar 2008 00:40:47 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Markus Gothe <nihilus> 08/03/24 00:40:46
Modified files:
. : ChangeLog
plugin : plugin.cpp
Log message:
compare result of getenv() with NULL.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.6016&r2=1.6017
http://cvs.savannah.gnu.org/viewcvs/gnash/plugin/plugin.cpp?cvsroot=gnash&r1=1.101&r2=1.102
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.6016
retrieving revision 1.6017
diff -u -b -r1.6016 -r1.6017
--- ChangeLog 24 Mar 2008 00:37:56 -0000 1.6016
+++ ChangeLog 24 Mar 2008 00:40:46 -0000 1.6017
@@ -7,6 +7,7 @@
* libbase/memory.cpp: return true when function returns.
* libbase/sharedlib.cpp, plugins/plugin.cpp: declared char* as
const char*.
+ * plugins/plugin.cpp: compare result of getenv() with NULL.
2008-03-22 Dossy Shiobara <address@hidden>
Index: plugin/plugin.cpp
===================================================================
RCS file: /sources/gnash/gnash/plugin/plugin.cpp,v
retrieving revision 1.101
retrieving revision 1.102
diff -u -b -r1.101 -r1.102
--- plugin/plugin.cpp 24 Mar 2008 00:37:57 -0000 1.101
+++ plugin/plugin.cpp 24 Mar 2008 00:40:46 -0000 1.102
@@ -165,7 +165,7 @@
Check for environment variables.
*/
char* opts = getenv("GNASH_OPTIONS");
- if ( opts )
+ if (opts != NULL)
{
cout << "GNASH_OPTIONS : " << opts << endl;
@@ -965,7 +965,7 @@
if (!desc)
{
desc = getenv("GNASH_PLUGIN_DESCRIPTION");
- if (!desc) desc = PLUGIN_DESCRIPTION;
+ if (desc == NULL) desc = PLUGIN_DESCRIPTION;
}
return desc;
}