]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - aft.c
aft.c: Silence noisy warnings in com_add().
[paraslash.git] / aft.c
diff --git a/aft.c b/aft.c
index acf751566c61d82e23cc34565c1189f2db147917..4893f215b8a46cd9c18d0b03e0262b1ff68f72df 100644 (file)
--- a/aft.c
+++ b/aft.c
@@ -1876,8 +1876,10 @@ static int add_one_audio_file(const char *path, void *private_data)
        unsigned char hash[HASH_SIZE];
 
        ret = guess_audio_format(path);
-       if (ret < 0 && !(pad->flags & ADD_FLAG_ALL))
+       if (ret < 0 && !(pad->flags & ADD_FLAG_ALL)) {
+               ret = 0;
                goto out_free;
+       }
        query.data = (char *)path;
        query.size = strlen(path) + 1;
        ret = send_callback_request(path_brother_callback, &query,