forked from enlightenment/efl
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:
parent
45340521f9
commit
1e287bde2b
|
@ -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++)
|
||||
|
|
Loading…
Reference in New Issue