git://git.jankratochvil.net
/
middleman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
e6830b9
)
Fixed general memory corruption
author
short
<>
Mon, 18 Nov 2002 22:14:05 +0000
(22:14 +0000)
committer
short
<>
Mon, 18 Nov 2002 22:14:05 +0000
(22:14 +0000)
src/mime.c
patch
|
blob
|
history
diff --git
a/src/mime.c
b/src/mime.c
index
2dc69b0
..
03da466
100644
(file)
--- a/
src/mime.c
+++ b/
src/mime.c
@@
-345,12
+345,12
@@
struct MIME_LIST_LIST *mime_ll_delete(struct MIME_LIST_LIST *x)
struct MIME_LIST_LIST *mime_ll_new(struct MIME_LIST_LIST *x)
{
if (x == NULL) {
- x = xmalloc(sizeof(
MIME_LIST
));
+ x = xmalloc(sizeof(
*x
));
x->prev = NULL;
} else {
while (x->next != NULL)
x = x->next;
- x->next = xmalloc(sizeof(
MIME_LIST
));
+ x->next = xmalloc(sizeof(
*x
));
x->next->prev = x;
x = x->next;
}