From 8fdf425d52986a519c7d46e9a999bc7b993c7cff Mon Sep 17 00:00:00 2001 From: Sven Trenkel Date: Wed, 9 Dec 2009 16:33:50 +0100 Subject: [PATCH] Return EINVAL instead of 0 on error. --- src/meta_data.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/meta_data.c b/src/meta_data.c index 80b6dd1e..6a336c4b 100644 --- a/src/meta_data.c +++ b/src/meta_data.c @@ -245,7 +245,7 @@ int meta_data_type (meta_data_t *md, const char *key) /* {{{ */ meta_entry_t *e; if ((md == NULL) || (key == NULL)) - return 0; + return -EINVAL; pthread_mutex_lock (&md->lock); @@ -268,7 +268,7 @@ int meta_data_toc (meta_data_t *md, char ***toc) /* {{{ */ meta_entry_t *e; if ((md == NULL) || (toc == NULL)) - return -1; + return -EINVAL; pthread_mutex_lock (&md->lock); -- 2.30.2