X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/adc0a3232c43033729dbc036f0757bddfba463bd..3c9350bafc829e9ab7d3fe206b5b39b8412f0a28:/uip/forwsbr.c diff --git a/uip/forwsbr.c b/uip/forwsbr.c index 592f1eb2..901e6328 100644 --- a/uip/forwsbr.c +++ b/uip/forwsbr.c @@ -54,7 +54,7 @@ build_form (char *form, char *digest, int *dat, char *from, char *to, register struct comp *cptr; struct format *fmt; char *cp = NULL; - m_getfld_state_t gstate; + m_getfld_state_t gstate = 0; /* * Open the message we'll be scanning for components @@ -87,10 +87,9 @@ build_form (char *form, char *digest, int *dat, char *from, char *to, * these routines? */ - m_getfld_state_init (&gstate); for (;;) { int msg_count = sizeof msgbuf; - state = m_getfld (gstate, name, msgbuf, &msg_count, tmp); + state = m_getfld (&gstate, name, msgbuf, &msg_count, tmp); switch (state) { case FLD: case FLDPLUS: @@ -104,13 +103,13 @@ build_form (char *form, char *digest, int *dat, char *from, char *to, if (i != -1) { while (state == FLDPLUS) { msg_count = sizeof msgbuf; - state = m_getfld (gstate, name, msgbuf, &msg_count, tmp); + state = m_getfld (&gstate, name, msgbuf, &msg_count, tmp); fmt_appendcomp(i, name, msgbuf); } } while (state == FLDPLUS) msg_count = sizeof msgbuf; - state = m_getfld (gstate, name, msgbuf, &msg_count, tmp); + state = m_getfld (&gstate, name, msgbuf, &msg_count, tmp); break; case LENERR: