From f3a485b283141787667ea98b8e0a8687f07d9062 Mon Sep 17 00:00:00 2001 From: Ian C Date: Thu, 1 Jan 2004 01:25:04 +0000 Subject: A few tweaks and added an extra variable (showmatch) --- src/dstring.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/dstring.c') diff --git a/src/dstring.c b/src/dstring.c index 7e13067..ce434db 100644 --- a/src/dstring.c +++ b/src/dstring.c @@ -42,6 +42,7 @@ static const char id[]="$Id$"; #include "dstring.h" #include "util.h" +static const char header_id[]=KBS_DSTRING_H; /* ---------------------------------------- CONSTANTS */ @@ -66,8 +67,11 @@ DString DSInit(void) void DSFree(DString ds) { - free(ds->text); - free(ds); + if (ds) + { + free(ds->text); + free(ds); + } } -- cgit v1.2.3