From a3b8cfbc8f5b18a342dee79fd9928cbcc2fbb025 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sat, 29 Apr 2006 11:32:54 +0000 Subject: r15318: Don't create empty static libraries as some hosts have trouble with them. (This used to be commit 1505d7c6001f8a35e728a14af2885b813c32ebe7) --- source4/lib/util/util_str.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source4/lib/util') diff --git a/source4/lib/util/util_str.c b/source4/lib/util/util_str.c index df9fd44cd6..ec6a1cbbea 100644 --- a/source4/lib/util/util_str.c +++ b/source4/lib/util/util_str.c @@ -775,8 +775,9 @@ _PUBLIC_ int strwicmp(const char *psz1, const char *psz2) **/ _PUBLIC_ void string_replace(char *s, char oldc, char newc) { - for (;s && *s; s++) { + while (*s) { if (*s == oldc) *s = newc; + s++; } } -- cgit