diff options
author | jcid <devnull@localhost> | 2008-08-27 20:07:01 +0200 |
---|---|---|
committer | jcid <devnull@localhost> | 2008-08-27 20:07:01 +0200 |
commit | 95c9323aa50d0f280b04351e61b177f75f284399 (patch) | |
tree | 228000e03654bb693d807aebd99bad6c27945254 /dlib | |
parent | 7048063efcc630376103dcf7d3fe046abc0ef1c1 (diff) |
- Minor optimization in dlib's dStr_new().
Diffstat (limited to 'dlib')
-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; } |