]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
coverity: clonetest: check correct container is cloned
authorDwight Engen <dwight.engen@oracle.com>
Tue, 7 May 2013 14:57:26 +0000 (10:57 -0400)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 7 May 2013 17:27:03 +0000 (13:27 -0400)
Signed-off-by: Dwight Engen <dwight.engen@oracle.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/tests/clonetest.c

index fcb5ea66c4a6110d4c1fb162d165b67f8907c3e3..5644405e96e80aca1e8e1a5ed77074788b60674d 100644 (file)
@@ -70,7 +70,7 @@ int main(int argc, char *argv[])
                goto out;
        }
 
-       if (!c2->is_defined(c)) {
+       if (!c2->is_defined(c2)) {
                fprintf(stderr, "%d: %s not defined after clone\n", __LINE__, MYNAME2);
                goto out;
        }