]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
coverity: Don't pass uninitialized var to write
authorStéphane Graber <stgraber@ubuntu.com>
Fri, 14 Feb 2014 21:20:17 +0000 (16:20 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Sat, 15 Feb 2014 00:13:51 +0000 (19:13 -0500)
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/tests/locktests.c

index 2d04052a2adf0383d593f516a5790224fe49e8ed..dd3393a89334dc077513b4bef2a58b028e294255 100644 (file)
@@ -66,7 +66,7 @@ static void test_two_locks(void)
                fprintf(stderr, "%d; failed to get lock\n", __LINE__);
                exit(1);
        }
-       if (write(p[1], &c, 1) < 0) {
+       if (write(p[1], "a", 1) < 0) {
                perror("write");
                exit(1);
        }