From: discomfitor Date: Sat, 31 Jul 2010 05:10:44 +0000 (+0000) Subject: const X-Git-Tag: submit/2.0alpha-wayland/20121127.221958~1186 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2e2f8897f47c4f0a983cc7148960519e79385802;p=profile%2Fivi%2Fedje.git const git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@50706 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/bin/edje_decc.c b/src/bin/edje_decc.c index d509200..a9c06b5 100644 --- a/src/bin/edje_decc.c +++ b/src/bin/edje_decc.c @@ -365,9 +365,9 @@ output(void) static int compiler_cmd_is_sane() { - char *c = edje_file->compiler, *ptr; + const char *c = edje_file->compiler, *ptr; - if (!c || !*c) + if ((!c) || (!*c)) { return 0; } @@ -375,7 +375,7 @@ compiler_cmd_is_sane() for (ptr = c; ptr && *ptr; ptr++) { /* only allow [a-z][A-Z][0-9]_- */ - if (!isalnum(*ptr) && *ptr != '_' && *ptr != '-') + if ((!isalnum(*ptr)) && (*ptr != '_') && (*ptr != '-')) { return 0; }