pkgsrc/devel/bcc/patches/patch-ae

20 lines
565 B
Text

$NetBSD: patch-ae,v 1.4 2006/10/10 06:56:05 uebayasi Exp $
--- ld/table.c.orig 1994-02-19 23:36:05.000000000 +0100
+++ ld/table.c
@@ -13,6 +13,7 @@ void *malloc P((unsigned size));
#else
#undef NULL
#include <stdlib.h>
+#include <string.h>
#endif
#define GOLDEN 157 /* GOLDEN/HASHTABSIZE approx golden ratio */
@@ -48,7 +49,7 @@ PUBLIC struct symstruct *addsym(name)
char *name;
{
struct symstruct **hashptr;
- struct symstruct *oldsymptr;
+ struct symstruct *oldsymptr = NULL;
struct symstruct *symptr;
hashptr = gethashptr(name);