diff options
author | Jörg Thalheim <joerg@higgsboson.tk> | 2013-02-18 22:57:39 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-02-19 09:23:18 +0100 |
commit | d5b756413a1ea432e8e580b27fef004223895f07 (patch) | |
tree | 60d76a6fc04cf67d69461c3bf23292e67e064fad /src/protocol | |
parent | 96dc0a318afc5eba581696640a50f652cc3fc964 (diff) | |
download | mpd-d5b756413a1ea432e8e580b27fef004223895f07.tar.gz mpd-d5b756413a1ea432e8e580b27fef004223895f07.tar.xz mpd-d5b756413a1ea432e8e580b27fef004223895f07.zip |
command: allow to omit END in ranges (START:END)
If END is omitted, mpd should use the highest possible value instead of raising an error.
This partially reverts 52e9cab1c1743f64a7
Diffstat (limited to '')
-rw-r--r-- | src/protocol/argparser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocol/argparser.c b/src/protocol/argparser.c index b21d4c53c..d20437cb7 100644 --- a/src/protocol/argparser.c +++ b/src/protocol/argparser.c @@ -103,7 +103,7 @@ check_range(struct client *client, unsigned *value_r1, unsigned *value_r2, if (*test == ':') { value = strtol(++test, &test2, 10); - if (test2 == test || *test2 != '\0') { + if (*test2 != '\0') { command_error(client, ACK_ERROR_ARG, "Integer or range expected: %s", s); return false; |