[rygel/config] Treat empty strings from gconf as nulls.



commit 95ef7c60f3f48467eb651d39e608b0032e85fc0a
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Thu Apr 23 15:33:58 2009 +0300

    Treat empty strings from gconf as nulls.
---
 src/rygel/rygel-config-reader.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/rygel/rygel-config-reader.vala b/src/rygel/rygel-config-reader.vala
index 1dff34b..59250e7 100644
--- a/src/rygel/rygel-config-reader.vala
+++ b/src/rygel/rygel-config-reader.vala
@@ -74,7 +74,7 @@ public class Rygel.ConfigReader {
             val = null;
         }
 
-        if (val == null) {
+        if (val == null || val == "") {
             val = default_value;
         }
 



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