From: Adam Dickmeiss Date: Tue, 2 Aug 2011 07:40:26 +0000 (+0200) Subject: Avoid useless variable suffixlen X-Git-Tag: v1.3.5~9 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=e97027abe6e12ad59d16b475c28e3767c83b1343;p=metaproxy-moved-to-github.git Avoid useless variable suffixlen --- diff --git a/src/filter_zoom.cpp b/src/filter_zoom.cpp index 8d623d4..1c076f4 100644 --- a/src/filter_zoom.cpp +++ b/src/filter_zoom.cpp @@ -842,13 +842,9 @@ yf::Zoom::BackendPtr yf::Zoom::Frontend::get_backend_from_databases( { char *fname = (char *) xmalloc(m_p->content_tmp_file.length() + 8); strcpy(fname, m_p->content_tmp_file.c_str()); - int suffixlen; char *xx = strstr(fname, "XXXXXX"); - if (xx) - suffixlen = strlen(xx) - 6; - else + if (!xx) { - suffixlen = 0; xx = fname + strlen(fname); strcat(fname, "XXXXXX"); }