From 962ebacf7794eb366fa1868c5d956013f160aafd Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Tue, 18 Sep 2012 12:52:28 +0200 Subject: [PATCH] core: Zero should be a correct settings value. --- src/rygel/rygel-user-config.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.7.4