This patch replace the successful return code from 0 to 1. The
error code is replaced from 1 to 0.
The return code of this function is actually unused, so this
patch cannot modify the behaviour.
/*
- * Parse args in a logformat_var
+ * Parse args in a logformat_var. Returns 0 in error
+ * case, otherwise, it returns 1.
*/
int parse_logformat_var_args(char *args, struct logformat_node *node)
{
char *sp = NULL; // start pointer
if (args == NULL)
- return 1;
+ return 0;
while (1) {
if (*args == '\0')
}
args++;
}
- return 0;
+ return 1;
}
/*