summaryrefslogtreecommitdiff
path: root/source4/lib/util/util_str.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-04-29 11:32:54 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:05:12 -0500
commita3b8cfbc8f5b18a342dee79fd9928cbcc2fbb025 (patch)
treed9698ad3cdc88b9b841afad5e4d87848a454deb8 /source4/lib/util/util_str.c
parent26259ce98b20e6ae797afdfe9d3b8cf43cf01702 (diff)
downloadsamba-a3b8cfbc8f5b18a342dee79fd9928cbcc2fbb025.tar.gz
samba-a3b8cfbc8f5b18a342dee79fd9928cbcc2fbb025.tar.bz2
samba-a3b8cfbc8f5b18a342dee79fd9928cbcc2fbb025.zip
r15318: Don't create empty static libraries as some hosts have trouble with them.
(This used to be commit 1505d7c6001f8a35e728a14af2885b813c32ebe7)
Diffstat (limited to 'source4/lib/util/util_str.c')
-rw-r--r--source4/lib/util/util_str.c3
1 files changed, 2 insertions, 1 deletions
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++;
}
}