shell: validate get_animation_type parameter
Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
This commit is contained in:
committed by
Kristian Høgsberg
parent
c4c7a4f921
commit
b571910584
@@ -406,6 +406,9 @@ get_modifier(char *modifier)
|
|||||||
static enum animation_type
|
static enum animation_type
|
||||||
get_animation_type(char *animation)
|
get_animation_type(char *animation)
|
||||||
{
|
{
|
||||||
|
if (!animation)
|
||||||
|
return ANIMATION_NONE;
|
||||||
|
|
||||||
if (!strcmp("zoom", animation))
|
if (!strcmp("zoom", animation))
|
||||||
return ANIMATION_ZOOM;
|
return ANIMATION_ZOOM;
|
||||||
else if (!strcmp("fade", animation))
|
else if (!strcmp("fade", animation))
|
||||||
|
|||||||
Reference in New Issue
Block a user