From e97027abe6e12ad59d16b475c28e3767c83b1343 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 2 Aug 2011 09:40:26 +0200 Subject: [PATCH] Avoid useless variable suffixlen --- src/filter_zoom.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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"); } -- 1.7.10.4