From b57191058412cff81cc8f07a46f3f7b0c2532d51 Mon Sep 17 00:00:00 2001 From: "U. Artie Eoff" Date: Wed, 15 Jan 2014 14:26:31 -0800 Subject: [PATCH] shell: validate get_animation_type parameter Signed-off-by: U. Artie Eoff --- desktop-shell/shell.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c index c27ccc704..b3e1c4f86 100644 --- 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))