]> xenbits.xensource.com Git - libvirt.git/commitdiff
gendispatch: Don't output spaces on empty line
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 28 Jan 2016 14:20:17 +0000 (15:20 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 28 Jan 2016 16:10:54 +0000 (17:10 +0100)
In our generator for some code we put empty lines in the output
to separate blocks of code. However, in some cases we put couple
of spaces on the empty line too. It's not bug, it just isn't
nice.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/rpc/gendispatch.pl

index 5cfc5120b209227715562dcececce9397637d797..37401301e259bbef4de5255a8561c69ab108d120 100755 (executable)
@@ -677,7 +677,7 @@ elsif ($mode eq "server") {
                     push(@prepare_ret_list,
                          "if (VIR_ALLOC($2_p) < 0)\n" .
                          "        goto cleanup;\n" .
-                         "    \n" .
+                         "\n" .
                          "    if (VIR_STRDUP(*$2_p, $2) < 0)\n".
                          "        goto cleanup;\n");