X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=aft.c;h=7a6d3f22e2361c42b5faca9d2ba240688215faec;hp=63a40d790f602c81d6f28e71e02b6d46d907cd5d;hb=b0be59e69290248c621510f1e6bc1406ee0ed823;hpb=abc5e2984cb16148abec9e36b17adba6f233a72c diff --git a/aft.c b/aft.c index 63a40d79..7a6d3f22 100644 --- a/aft.c +++ b/aft.c @@ -542,10 +542,12 @@ int get_audio_file_path_of_row(const struct osl_row *row, char **path) struct osl_object path_obj; int ret = osl(osl_get_object(audio_file_table, row, AFTCOL_PATH, &path_obj)); + if (ret < 0) - return ret; - *path = path_obj.data; - return 1; + *path = NULL; + else + *path = path_obj.data; + return ret; } /**