]> git.proxmox.com Git - mirror_lxc.git/commitdiff
lxc-test-concurrent: initialize saveptr before use
authorQiang Huang <h.huangqiang@huawei.com>
Tue, 10 Dec 2013 11:37:46 +0000 (19:37 +0800)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 10 Dec 2013 14:06:50 +0000 (09:06 -0500)
Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/tests/concurrent.c

index b9749df7067c3384662c973e87de76aa06095c18..7145d99c3e9cff426e980ee1b432ba7daebceb1d 100644 (file)
@@ -162,7 +162,7 @@ int main(int argc, char *argv[]) {
             quiet = 1;
             break;
         case 'm': {
-            char *mode_tok, *tok, *saveptr;
+            char *mode_tok, *tok, *saveptr = NULL;
 
             modes = NULL;
             for (i = 0, mode_tok = optarg;