X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=src%2Fcli%2Fbabeltrace2-cfg-cli-params-arg.c;h=b13172d0e7d9ae153bbc68d85651b5eec9e76e59;hp=d69ee8225ce3d69aad2c4c200fb9c41bd564a410;hb=5084732e40a7925d22f741e4ed08f19d36078fbe;hpb=cd1ef6f2860c2b6bf3c22ee984347029c31ac827 diff --git a/src/cli/babeltrace2-cfg-cli-params-arg.c b/src/cli/babeltrace2-cfg-cli-params-arg.c index d69ee822..b13172d0 100644 --- a/src/cli/babeltrace2-cfg-cli-params-arg.c +++ b/src/cli/babeltrace2-cfg-cli-params-arg.c @@ -87,7 +87,7 @@ void ini_append_error_expecting(struct ini_parsing_state *state, g_string_append_printf(state->ini_error, "Expecting %s:\n", expecting); /* Only append error if there's one line */ - if (strchr(state->arg, '\n') != NULL || strlen(state->arg) == 0) { + if (strchr(state->arg, '\n') || strlen(state->arg) == 0) { return; }