[Refdb-cvs] CVS: refdb/src refdbdbib.c,1.36.2.11,1.36.2.12
Status: Beta
Brought to you by:
mhoenicka
From: Markus H. <mho...@us...> - 2004-09-28 22:14:54
|
Update of /cvsroot/refdb/refdb/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29136 Modified Files: Tag: Release_0_9_5_stable refdbdbib.c Log Message: getbib():initialize ptr_addresult->msg_len properly if the string is newly allocated Index: refdbdbib.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/refdbdbib.c,v retrieving revision 1.36.2.11 retrieving revision 1.36.2.12 diff -u -U2 -r1.36.2.11 -r1.36.2.12 --- refdbdbib.c 26 Sep 2004 21:10:31 -0000 1.36.2.11 +++ refdbdbib.c 28 Sep 2004 22:14:40 -0000 1.36.2.12 @@ -1131,8 +1131,9 @@ if (!ptr_addresult->msg) { - ptr_addresult->msg = (char*)malloc(256); + ptr_addresult->msg = (char*)malloc(256); /* something to start with */ if (ptr_addresult->msg) { *(ptr_addresult->msg) = '\0'; + ptr_addresult->msg_len = 256; } } |