[glibmm] Fix typos in miscutils.
- From: Krzesimir Nowak <krnowak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] Fix typos in miscutils.
- Date: Tue, 17 Apr 2012 11:47:07 +0000 (UTC)
commit 64b20b098dd24aeb6cea9b95ea861ddd58fde778
Author: Krzesimir Nowak <qdlacz gmail com>
Date: Tue Apr 17 13:43:02 2012 +0200
Fix typos in miscutils.
* glib/glibmm/miscutils.cc: Return early from get_system_data_dirs()
and get_system_config_dirs() when C function returns NULL.
ChangeLog | 7 +++++++
glib/glibmm/miscutils.cc | 4 ++--
2 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 9cafd98..0d09c6c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2012-04-17 Krzesimir Nowak <qdlacz gmail com>
+
+ Miscutils: Fix typos.
+
+ * glib/glibmm/miscutils.cc: Return early from get_system_data_dirs()
+ and get_system_config_dirs() when C function returns NULL.
+
2.32.0:
2012-04-05 Kjell Ahlstedt <kjell ahlstedt bredband net>
diff --git a/glib/glibmm/miscutils.cc b/glib/glibmm/miscutils.cc
index 2937ddb..95226b8 100644
--- a/glib/glibmm/miscutils.cc
+++ b/glib/glibmm/miscutils.cc
@@ -126,7 +126,7 @@ std::vector<std::string> get_system_data_dirs()
//TODO: Use a utility function:
std::vector<std::string> result;
const char* const * cresult = g_get_system_data_dirs();
- if(cresult)
+ if(!cresult)
return result;
for(const gchar* const * iter = cresult; *iter != 0; ++iter)
@@ -143,7 +143,7 @@ std::vector<std::string> get_system_config_dirs()
//TODO: Use a utility function:
std::vector<std::string> result;
const char* const * cresult = g_get_system_config_dirs();
- if(cresult)
+ if(!cresult)
return result;
for(const gchar* const * iter = cresult; *iter != 0; ++iter)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]