Merge branch 't/id3_conf'
authorAndre Noll <maan@systemlinux.org>
Sun, 25 Mar 2012 15:53:07 +0000 (17:53 +0200)
committerAndre Noll <maan@systemlinux.org>
Sun, 25 Mar 2012 16:04:12 +0000 (18:04 +0200)
configure: Add --with-id3tag-headers/libs.
Link against libz if compiling with libid3tag support.

NEWS
mood.c

diff --git a/NEWS b/NEWS
index 5b87555..7c3ac3c 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -13,6 +13,8 @@
        - para_audioc: Cleanups and memory leak fixes.
        - Test 0004-server no longer fails if para_server is not
          being built.
+       - New configure options: --with-id3tag-{headers,libs}.
+
 
 -------------------------------------
 0.4.9 (2011-12-06) "hybrid causality"
diff --git a/mood.c b/mood.c
index 1a572cf..f580400 100644 (file)
--- a/mood.c
+++ b/mood.c
@@ -364,8 +364,10 @@ static int load_mood(const struct osl_row *mood_row, struct mood **m)
        char *mood_name;
        struct osl_object mood_def;
        struct mood_line_parser_data mlpd = {.line_num = 0};
-       int ret = mood_get_name_and_def_by_row(mood_row, &mood_name, &mood_def);
+       int ret;
 
+       *m = NULL;
+       ret = mood_get_name_and_def_by_row(mood_row, &mood_name, &mood_def);
        if (ret < 0)
                return ret;
        if (!*mood_name)