edje_cc: factorize two strlen()s

Reviewers: cedric, raster

Reviewed By: raster

CC: cedric

Differential Revision: https://phab.enlightenment.org/D454
This commit is contained in:
Jean Guyomarc'h 2014-01-20 12:47:46 +09:00 committed by Carsten Haitzler (Rasterman)
parent 45340521f9
commit 1e287bde2b
1 changed files with 2 additions and 2 deletions

View File

@ -2658,11 +2658,11 @@ data_process_string(Edje_Part_Collection *pc, const char *prefix, char *s, void
int keyl;
int quote, escape;
key = alloca(strlen(prefix) + 2 + 1);
keyl = strlen(prefix) + 2;
key = alloca(keyl + 1);
if (!key) return;
strcpy(key, prefix);
strcat(key, ":\"");
keyl = strlen(key);
quote = 0;
escape = 0;
for (p = s; (p) && (*p); p++)