projects
/
metaproxy-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
497a211
)
Avoid useless variable suffixlen
author
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 2 Aug 2011 07:40:26 +0000
(09:40 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 2 Aug 2011 07:40:26 +0000
(09:40 +0200)
src/filter_zoom.cpp
patch
|
blob
|
history
diff --git
a/src/filter_zoom.cpp
b/src/filter_zoom.cpp
index
8d623d4
..
1c076f4
100644
(file)
--- 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");
}