summaryrefslogtreecommitdiff
path: root/src/FreeType
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2014-01-07 23:09:08 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2014-01-08 17:44:15 -0800
commit6371fcf2b60e48605ed59f098d1e642e35b1d142 (patch)
treeab0eacdeab2861758c2e2e3da1fb688f4596a74e /src/FreeType
parent63c7ac4dbb739e51d55249e71282699e5e0d7e1d (diff)
Remove redundant setting of 'len' in SPropRecValList_add_by_font_cap
Found by cppcheck 1.63: [FreeType/xttcap.c:621] -> [FreeType/xttcap.c:624]: (performance) Variable 'len' is reassigned a value before the old one has been used. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jasper St. Pierre <jstpierre@mecheye.net>
Diffstat (limited to 'src/FreeType')
-rw-r--r--src/FreeType/xttcap.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/FreeType/xttcap.c b/src/FreeType/xttcap.c
index 104dc89..cee752e 100644
--- a/src/FreeType/xttcap.c
+++ b/src/FreeType/xttcap.c
@@ -621,7 +621,6 @@ SPropRecValList_add_by_font_cap(SDynPropRecValList *pThisList,
int len = term-p-1;
char *value;
- len = term-p-1;
value=malloc(len+1);
memcpy(value, p+1, len);
value[len]='\0';