]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Make sure the variable is completely initialised. That's good
authorFlorian Krohm <florian@eich-krohm.de>
Tue, 22 Jan 2013 00:25:05 +0000 (00:25 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Tue, 22 Jan 2013 00:25:05 +0000 (00:25 +0000)
practice and also silences a complaint from the Coverity checker.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13258

helgrind/libhb_core.c

index 46e1378431118e248b12fcddc230a36ad0d8e2d7..05ba817bb37fe080effadbc3c7cc1cbbf75c7373 100644 (file)
@@ -4057,6 +4057,7 @@ static RCEC* get_RCEC ( Thr* thr )
    example.magic = RCEC_MAGIC;
    example.rc = 0;
    example.rcX = 0;
+   example.next = NULL;
    main_get_stacktrace( thr, &example.frames[0], N_FRAMES );
    hash = 0;
    for (i = 0; i < N_FRAMES; i++) {