[rygel/config] Treat empty strings from gconf as nulls.
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Subject: [rygel/config] Treat empty strings from gconf as nulls.
- Date: Thu, 23 Apr 2009 13:09:43 -0400 (EDT)
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]