]> xenbits.xensource.com Git - libvirt.git/commitdiff
virt-aa-helper: Trick invalid syntax-check
authorMartin Kletzander <mkletzan@redhat.com>
Wed, 12 Nov 2014 16:41:38 +0000 (17:41 +0100)
committerMartin Kletzander <mkletzan@redhat.com>
Fri, 14 Nov 2014 16:13:00 +0000 (17:13 +0100)
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 <mkletzan@redhat.com>
src/security/virt-aa-helper.c

index 1f299a056d848cb8c498590218e2822f091c91a4..8c2434cd09415e8d90526f516e5f17a9e6979d90 100644 (file)
@@ -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"));
     }