diff options
author | Ian C <ianc@noddybox.co.uk> | 2004-01-01 01:25:04 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2004-01-01 01:25:04 +0000 |
commit | f3a485b283141787667ea98b8e0a8687f07d9062 (patch) | |
tree | 2c5234cb3408979109e987737a6197ec2085ec7e /src/dstring.c | |
parent | 9d6402a5215920987fb10e5b35f35b93f1c6f725 (diff) |
A few tweaks and added an extra variable (showmatch)
Diffstat (limited to 'src/dstring.c')
-rw-r--r-- | src/dstring.c | 8 |
1 files changed, 6 insertions, 2 deletions
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); + } } |