projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fork in repl as a tree
[mmh]
/
uip
/
distsbr.c
diff --git
a/uip/distsbr.c
b/uip/distsbr.c
index
21b42a5
..
058875c
100644
(file)
--- a/
uip/distsbr.c
+++ b/
uip/distsbr.c
@@
-25,7
+25,7
@@
int
distout(char *drft, char *msgnam, char *backup)
{
enum state state;
distout(char *drft, char *msgnam, char *backup)
{
enum state state;
- struct field f = free_field;
+ struct field f = {{0}};
unsigned char *dp;
int resent = 0;
FILE *ifp, *ofp;
unsigned char *dp;
int resent = 0;
FILE *ifp, *ofp;
@@
-123,7
+123,7
@@
static int
ready_msg(char *msgnam)
{
enum state state;
ready_msg(char *msgnam)
{
enum state state;
- struct field f = free_field;
+ struct field f = {{0}};
char tmpfil[BUFSIZ];
int out;
FILE *ifp, *ofp;
char tmpfil[BUFSIZ];
int out;
FILE *ifp, *ofp;
@@
-182,10
+182,10
@@
ready_msg(char *msgnam)
return NOTOK;
}
unlink(tmpfil);
return NOTOK;
}
unlink(tmpfil);
- fprintf(ofp, "\n%s", f.value);
+ fputs("\n", ofp);
while (state == BODY2) {
while (state == BODY2) {
- state = m_getfld2(state, &f, ifp);
fputs(f.value, ofp);
fputs(f.value, ofp);
+ state = m_getfld2(state, &f, ifp);
}
/* FALL */
}
/* FALL */