* mdocml: Remember to NULL-ify new keys/vals.
@ 2011-07-17 14:11 kristaps
0 siblings, 0 replies; only message in thread
From: kristaps @ 2011-07-17 14:11 UTC (permalink / raw)
To: source
Log Message:
-----------
Remember to NULL-ify new keys/vals.
Modified Files:
--------------
mdocml:
Makefile
eqn.c
Revision Data
-------------
Index: eqn.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/eqn.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -Leqn.c -Leqn.c -u -p -r1.8 -r1.9
--- eqn.c
+++ eqn.c
@@ -283,6 +283,7 @@ eqn_do_define(struct eqn_node *ep, int l
ep->defs = mandoc_realloc
(ep->defs, ep->defsz *
sizeof(struct eqn_def));
+ ep->defs[i].key = ep->defs[i].val = NULL;
}
ep->defs[i].keysz = sz;
Index: Makefile
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/Makefile,v
retrieving revision 1.356
retrieving revision 1.357
diff -LMakefile -LMakefile -u -p -r1.356 -r1.357
--- Makefile
+++ Makefile
@@ -355,7 +355,7 @@ llib-lmandoc.ln: $(MANDOC_LNS)
# You'll need -ldb for Linux.
mandocdb: $(MANDOCDB_OBJS) libmandoc.a
- $(CC) -o $@ $(MANDOCDB_OBJS) libmandoc.a
+ $(CC) -o $@ $(MANDOCDB_OBJS) libmandoc.a -ldb
llib-lmandocdb.ln: $(MANDOCDB_LNS)
$(LINT) $(LINTFLAGS) -Cmandocdb $(MANDOCDB_LNS)
--
To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-07-17 14:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-17 14:11 mdocml: Remember to NULL-ify new keys/vals kristaps
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).