[rygel] core: Zero should be a correct settings value.



commit 962ebacf7794eb366fa1868c5d956013f160aafd
Author: Krzesimir Nowak <krnowak openismus com>
Date:   Tue Sep 18 12:52:28 2012 +0200

    core: Zero should be a correct settings value.

 src/rygel/rygel-user-config.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/rygel/rygel-user-config.vala b/src/rygel/rygel-user-config.vala
index 06efffd..a9ae1f3 100644
--- a/src/rygel/rygel-user-config.vala
+++ b/src/rygel/rygel-user-config.vala
@@ -243,7 +243,7 @@ public class Rygel.UserConfig : GLib.Object, Configuration {
             }
         }
 
-        if (val == 0 || val < min || val > max) {
+        if (val < min || val > max) {
             throw new ConfigurationError.VALUE_OUT_OF_RANGE
                                         (_("Value of '%s' out of range"), key);
         }



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