]> git.mikk.net Git - liburl/commitdiff
Initialize "hdralloc" field of message_state structure.
authorchris mikkelson <chris@mikk.net>
Sat, 13 Mar 2010 04:40:25 +0000 (22:40 -0600)
committerchris mikkelson <chris@mikk.net>
Sat, 13 Mar 2010 04:40:25 +0000 (22:40 -0600)
message.c

index 4b66878ac432a07af0da0132165faa49b32d0dd0..fc4258cdf97cd992e75af90cfc14fcbd1e9ac0a2 100644 (file)
--- a/message.c
+++ b/message.c
@@ -98,8 +98,10 @@ message_start(msgproc *m)
                if (!ms->header) {
                        free(ms);
                        ms = 0;
+               } else {
+                       ms->type = text_module;
+                       ms->hdralloc = HDRALLOC;
                }
-               ms->type = text_module;
        }
        msgproc_setpriv(m, (void*)ms);
 }