X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=compress_filter.c;h=04377b752a89cf83ba33532e4d24542e9d06a064;hp=49d6d66c4f7a6b37d3b5ba4e072f2208f3a90715;hb=e82be065a135dd946a9b0f50514735c3526ad994;hpb=35e284e06a5c8e20d02b61fdcb4bcc20b237c1e4 diff --git a/compress_filter.c b/compress_filter.c index 49d6d66c..04377b75 100644 --- a/compress_filter.c +++ b/compress_filter.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005-2012 Andre Noll + * Copyright (C) 2005-2013 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -115,18 +115,11 @@ err: /** TODO: Add sanity checks */ static int compress_parse_config(int argc, char **argv, void **config) { - int ret; - struct compress_filter_args_info *compress_conf - = para_calloc(sizeof(*compress_conf)); + struct compress_filter_args_info *conf = para_calloc(sizeof(*conf)); - ret = -E_COMPRESS_SYNTAX; - if (compress_filter_cmdline_parser(argc, argv, compress_conf)) - goto err; - *config = compress_conf; + compress_filter_cmdline_parser(argc, argv, conf); + *config = conf; return 1; -err: - free(compress_conf); - return ret; } static void compress_open(struct filter_node *fn)