diff options
-rw-r--r-- | dlib/dlib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dlib/dlib.c b/dlib/dlib.c index aa96bb32..f92f64e7 100644 --- a/dlib/dlib.c +++ b/dlib/dlib.c @@ -275,7 +275,7 @@ void dStr_append (Dstr *ds, const char *s) Dstr *dStr_new (const char *s) { Dstr *ds = dStr_sized_new(0); - if (s) + if (s && *s) dStr_append(ds, s); return ds; } |