From: Andre Noll Date: Sat, 15 Sep 2007 08:41:48 +0000 (+0200) Subject: com_add(): Add missing return statement. X-Git-Tag: v0.3.0~407 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=371b9f4aa3b16935f410a40e7ede4e43e63f87e6;p=paraslash.git com_add(): Add missing return statement. Duplicates were added twice in force mode. --- diff --git a/aft.c b/aft.c index d88be97e..4845a544 100644 --- a/aft.c +++ b/aft.c @@ -683,6 +683,7 @@ static int print_list_item(struct ls_data *d, struct ls_options *opts, sprintf(score_buf, "%li ", d->score); } + PARA_NOTICE_LOG("id: %s, %d\n", d->path, afsi->audio_format_id); if (opts->mode == LS_MODE_LONG) { para_printf(b, "%s" /* score */ @@ -1340,9 +1341,7 @@ static int com_add_callback(const struct osl_object *query, &objs[AFTCOL_CHUNKS]); if (ret < 0) return ret; - ret = mood_update_audio_file(row, NULL); - if (ret < 0) - return ret; + return mood_update_audio_file(row, NULL); } /* new entry, use default afsi */ default_afsi.last_played = time(NULL) - 365 * 24 * 60 * 60;