summaryrefslogtreecommitdiff
path: root/src/bin/edje/edje_cc_out.c
diff options
context:
space:
mode:
authorJean Guyomarc'h <jean.guyomarch@gmail.com>2014-01-20 12:47:46 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-01-20 12:47:46 +0900
commit1e287bde2b13e215b311dbb2ae8e03e7ddc26728 (patch)
tree9819a69d4260f6feb0ac6c3a4276e90c2f62087a /src/bin/edje/edje_cc_out.c
parent45340521f961ecc6c7d99519c6102692b11da338 (diff)
edje_cc: factorize two strlen()s
Reviewers: cedric, raster Reviewed By: raster CC: cedric Differential Revision: https://phab.enlightenment.org/D454
Diffstat (limited to 'src/bin/edje/edje_cc_out.c')
-rw-r--r--src/bin/edje/edje_cc_out.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/edje/edje_cc_out.c b/src/bin/edje/edje_cc_out.c
index a8bf5dd5a8..e30b5965cc 100644
--- a/src/bin/edje/edje_cc_out.c
+++ b/src/bin/edje/edje_cc_out.c
@@ -2658,11 +2658,11 @@ data_process_string(Edje_Part_Collection *pc, const char *prefix, char *s, void
2658 int keyl; 2658 int keyl;
2659 int quote, escape; 2659 int quote, escape;
2660 2660
2661 key = alloca(strlen(prefix) + 2 + 1); 2661 keyl = strlen(prefix) + 2;
2662 key = alloca(keyl + 1);
2662 if (!key) return; 2663 if (!key) return;
2663 strcpy(key, prefix); 2664 strcpy(key, prefix);
2664 strcat(key, ":\""); 2665 strcat(key, ":\"");
2665 keyl = strlen(key);
2666 quote = 0; 2666 quote = 0;
2667 escape = 0; 2667 escape = 0;
2668 for (p = s; (p) && (*p); p++) 2668 for (p = s; (p) && (*p); p++)