]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - aft.c
Merge commit 'remotes/fml/v0.3' into v0.3
[paraslash.git] / aft.c
diff --git a/aft.c b/aft.c
index c6ca289f18229b28ecf0ee45fba49d06fc1791fc..5112affacdcd29ebcaf51b82eb9d6980035d5f88 100644 (file)
--- a/aft.c
+++ b/aft.c
@@ -2213,5 +2213,7 @@ int aft_init(struct table_info *ti, const char *db)
        }
        PARA_INFO_LOG("failed to open audio file table\n");
        audio_file_table = NULL;
-       return ret == -E_NOENT? 1 : ret;
+       if (ret >= 0 || is_errno(-ret, ENOENT))
+               return 1;
+       return ret;
 }