From: Adam Dickmeiss Date: Tue, 9 Nov 2004 20:54:08 +0000 (+0000) Subject: Use strchr,strrchr instead of index/rindex. X-Git-Tag: YAZ.2.0.28 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=c23776e0c46dc3ae8bff5e4f4a2086a44fedbf07;p=yaz-moved-to-github.git Use strchr,strrchr instead of index/rindex. --- diff --git a/src/log.c b/src/log.c index 024982b..0c726b6 100644 --- a/src/log.c +++ b/src/log.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-2004, Index Data * See the file LICENSE for details. * - * $Id: log.c,v 1.12 2004-11-04 14:19:58 heikki Exp $ + * $Id: log.c,v 1.13 2004-11-09 20:54:08 adam Exp $ */ /** @@ -320,19 +320,16 @@ void yaz_log_time_format(const char *fmt) /** cleans a loglevel name from leading paths and suffixes */ static char *clean_name(const char *name, int len, char *namebuf, int buflen) { - char *p; - char *start; + char *p = namebuf; + char *start = namebuf; if (buflen