commit | b57191058412cff81cc8f07a46f3f7b0c2532d51 | [log] [tgz] |
---|---|---|
author | U. Artie Eoff <ullysses.a.eoff@intel.com> | Wed Jan 15 14:26:31 2014 -0800 |
committer | Kristian Høgsberg <krh@bitplanet.net> | Sun Jan 19 22:05:04 2014 -0800 |
tree | 2ce47eca8b5c365b44f483f9a9d939de491f1d26 | |
parent | c4c7a4f921ca8fda4f254704761f891be611a7a5 [diff] |
shell: validate get_animation_type parameter Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c index c27ccc7..b3e1c4f 100644 --- a/desktop-shell/shell.c +++ b/desktop-shell/shell.c
@@ -406,6 +406,9 @@ 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))