summaryrefslogtreecommitdiff
path: root/beecrypt/memchunk.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2001-09-23 15:47:37 +0000
committerjbj <devnull@localhost>2001-09-23 15:47:37 +0000
commit039162ac61254a49feffa577e2dccafe4d75707c (patch)
treefec59b1bdf3024d4c80dfb5b00a4d5ad0172f901 /beecrypt/memchunk.c
parent0f7777894493527a5672d0ce09c4855e2b69495f (diff)
downloadlibrpm-tizen-039162ac61254a49feffa577e2dccafe4d75707c.tar.gz
librpm-tizen-039162ac61254a49feffa577e2dccafe4d75707c.tar.bz2
librpm-tizen-039162ac61254a49feffa577e2dccafe4d75707c.zip
More lclint fiddles.
CVS patchset: 5070 CVS date: 2001/09/23 15:47:37
Diffstat (limited to 'beecrypt/memchunk.c')
-rw-r--r--beecrypt/memchunk.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/beecrypt/memchunk.c b/beecrypt/memchunk.c
index fb68c510a..bc1a519c3 100644
--- a/beecrypt/memchunk.c
+++ b/beecrypt/memchunk.c
@@ -34,7 +34,7 @@
# include <malloc.h>
#endif
-/*@-compdef@*/ /* tmp-?data is undefined */
+/*@-compdef@*/ /* tmp->data is undefined */
memchunk* memchunkAlloc(int size)
{
memchunk* tmp = (memchunk*) calloc(1, sizeof(memchunk));
@@ -42,7 +42,9 @@ memchunk* memchunkAlloc(int size)
if (tmp)
{
tmp->size = size;
+ /*@-mustfree@*/ /* tmp->data is OK */
tmp->data = (byte*) malloc(size);
+ /*@=mustfree@*/
if (tmp->data == (byte*) 0)
{