]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
storage_backend_logical.c: appease clang: remove useless increment
authorJim Meyering <meyering@redhat.com>
Thu, 3 Sep 2009 16:14:48 +0000 (18:14 +0200)
committerJim Meyering <meyering@redhat.com>
Fri, 4 Sep 2009 16:59:29 +0000 (18:59 +0200)
* src/storage_backend_logical.c (virStorageBackendLogicalBuildPool):
Don't increment "n" when we won't use the result.

src/storage_backend_logical.c

index bc40dd730615732dbfbdbd6bf192a2b0adb0b9fc..43117e856725cd75dd35532f8e151b1269df88cf 100644 (file)
@@ -437,7 +437,7 @@ virStorageBackendLogicalBuildPool(virConnectPtr conn,
             goto cleanup;
     }
 
-    vgargv[n++] = NULL;
+    vgargv[n] = NULL;
 
     /* Now create the volume group itself */
     if (virRun(conn, vgargv, NULL) < 0)