From: Martin Kletzander Date: Wed, 12 Nov 2014 16:41:38 +0000 (+0100) Subject: virt-aa-helper: Trick invalid syntax-check X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=9fdb2b55d5288df09539b7617ad3a7f58e1333a7;p=libvirt.git virt-aa-helper: Trick invalid syntax-check Rule sc_prohibit_newline_at_end_of_diagnostic for syntax-check does check for passing strings ending with '\n' two lines after known functions. This is, of course subject to false positives, so for the sake of future changes, trick that syntax-check by adding one more line with a comment. Signed-off-by: Martin Kletzander --- diff --git a/src/security/virt-aa-helper.c b/src/security/virt-aa-helper.c index 1f299a056d..8c2434cd09 100644 --- a/src/security/virt-aa-helper.c +++ b/src/security/virt-aa-helper.c @@ -1257,6 +1257,7 @@ main(int argc, char **argv) vah_error(ctl, 1, _("could not set PATH")); } + /* ensure the traditional IFS setting */ if (setenv("IFS", " \t\n", 1) != 0) { vah_error(ctl, 1, _("could not set IFS")); }