# HG changeset patch # User reimar # Date 1352146460 0 # Node ID b192c23ea7f1307fcf4ad1d56ba3be17a2f6fc47 # Parent e979453a6af87e94e0c621dec0ad6a92e1266f4a Simplify. diff -r e979453a6af8 -r b192c23ea7f1 libaf/af.c --- a/libaf/af.c Mon Nov 05 20:11:34 2012 +0000 +++ b/libaf/af.c Mon Nov 05 20:14:20 2012 +0000 @@ -257,12 +257,8 @@ int rv=0; // Return value // Check if there are any filters left in the list - if(NULL == af){ - if(!(af=af_append(s,s->first,"dummy"))) - return AF_UNKNOWN; - else - return AF_ERROR; - } + if(!af) + return af_append(s,s->first,"dummy") ? AF_ERROR : AF_UNKNOWN; // Check if this is the first filter if(!af->prev)