coverity fix Uninitialized pointer read

This commit is contained in:
Fabrizio Fabbri 2017-05-16 22:43:08 +02:00
parent 8617d61e64
commit 539b05a1a2
No known key found for this signature in database
GPG key ID: 8276EDF3D10E6C35

View file

@ -262,7 +262,7 @@ void ~A(cl_object cblock)
* circular chain. This disables the garbage collection of
* the library until _ALL_ functions in all modules are unlinked.
*/
cl_object current, next = Cblock;
cl_object current = Cnil, next = Cblock;
~:{
current = ecl_make_codeblock();
current->cblock.next = next;
@ -313,6 +313,7 @@ extern int
ecl_init_module(OBJNULL, ~A);
~A
} ECL_CATCH_ALL_END;
return 0;
}
")