diff options
author | Max Kellermann <max@duempel.org> | 2008-10-09 19:17:44 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-09 19:17:44 +0200 |
commit | f1022bcc12dbdf5b7974fb1510197b12214fec32 (patch) | |
tree | cabe38f9e1f728423b03bab187e6c55157ffad8d /src/database.c | |
parent | 79a28e5c72ae01164b88ae6d8a510f47a92d231f (diff) | |
download | mpd-f1022bcc12dbdf5b7974fb1510197b12214fec32.tar.gz mpd-f1022bcc12dbdf5b7974fb1510197b12214fec32.tar.xz mpd-f1022bcc12dbdf5b7974fb1510197b12214fec32.zip |
update: job ID must be positive
The documentation for directory_update_init() was incorrect: a job ID
must be positive, not non-negative. If the update queue is full and
no job was created, it makes more sense to return 0 instead of -1,
because it is more consistent with the return value of isUpdatingDB().
Diffstat (limited to '')
-rw-r--r-- | src/database.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/database.c b/src/database.c index bd069f8b4..2581e408b 100644 --- a/src/database.c +++ b/src/database.c @@ -46,7 +46,7 @@ db_init(void) music_root = directory_new("", NULL); ret = directory_update_init(NULL); - if (ret < 0) + if (ret == 0) FATAL("directory update failed\n"); do { |