[glibmm] Revert "Fix the build"



commit c077defd970629fbc4fa9f2251973813bf939ed0
Author: Murray Cumming <murrayc murrayc com>
Date:   Sun Sep 8 20:02:26 2013 +0200

    Revert "Fix the build"
    
    This reverts commit 5d4342dd14bb7ca79b63c1341fdfa420164b35e4.

 glib/glibmm/objectbase.cc |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/glib/glibmm/objectbase.cc b/glib/glibmm/objectbase.cc
index e1fab4a..047f192 100644
--- a/glib/glibmm/objectbase.cc
+++ b/glib/glibmm/objectbase.cc
@@ -1,4 +1,7 @@
-/* Copyright 2002-2013 The gtkmm Development Team
+// -*- c++ -*-
+/* $Id$ */
+
+/* Copyright 2002 The gtkmm Development Team
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -261,7 +264,7 @@ void ObjectBase::set_property_value(const Glib::ustring& property_name, const Gl
   if(cvalue && G_VALUE_HOLDS(cvalue, G_TYPE_STRING))
   {
     const gchar* str = g_value_get_string (cvalue);
-    if(g_strcmp0(str, "") == 0)
+    if(str && (strcmp(str, "") == 0))
     {
       //Pass NULL to the C API instead of "":
       g_object_set(gobj(), property_name.c_str(), (void*)0, (void*)0);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]