projects
/
profile
/
ivi
/
weston-ivi-shell.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4c7a4f
)
shell: validate get_animation_type parameter
author
U. Artie Eoff
<ullysses.a.eoff@intel.com>
Wed, 15 Jan 2014 22:26:31 +0000
(14:26 -0800)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Mon, 20 Jan 2014 06:05:04 +0000
(22:05 -0800)
Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
desktop-shell/shell.c
patch
|
blob
|
history
diff --git
a/desktop-shell/shell.c
b/desktop-shell/shell.c
index
c27ccc7
..
b3e1c4f
100644
(file)
--- a/
desktop-shell/shell.c
+++ b/
desktop-shell/shell.c
@@
-406,6
+406,9
@@
get_modifier(char *modifier)
static enum animation_type
get_animation_type(char *animation)
{
+ if (!animation)
+ return ANIMATION_NONE;
+
if (!strcmp("zoom", animation))
return ANIMATION_ZOOM;
else if (!strcmp("fade", animation))