summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlavio Ceolin <flavio.ceolin@gmail.com>2015-05-22 22:36:11 -0300
committerFlavio Ceolin <flavio.ceolin@gmail.com>2015-05-22 22:36:11 -0300
commitda5dc86a7de37a19f9f3de855b03b7ceb48bdc10 (patch)
tree0f5087439c62ab44a6c890d5a1f8c2aa2d98b06b
parent86f5c49cd0dd118479d0f32999f77fe8720d2488 (diff)
module: fix possible unitialized variable
-rw-r--r--src/module/e_mod_main.c28
1 files changed, 3 insertions, 25 deletions
diff --git a/src/module/e_mod_main.c b/src/module/e_mod_main.c
index e179916..57f5a5d 100644
--- a/src/module/e_mod_main.c
+++ b/src/module/e_mod_main.c
@@ -585,32 +585,10 @@ _gc_shutdown(E_Gadcon_Client *gcc)
585} 585}
586 586
587static void 587static void
588_gc_orient(E_Gadcon_Client *gcc, E_Gadcon_Orient orient) 588_gc_orient(E_Gadcon_Client *gcc, E_Gadcon_Orient orient EINA_UNUSED)
589{ 589{
590 Instance *inst; 590 e_gadcon_client_aspect_set(gcc, 16, 16);
591 int w, h; 591 e_gadcon_client_min_size_set(gcc, 16, 16);
592
593 inst = gcc->data;
594 if (orient != E_GADCON_ORIENT_LAST)
595 inst->orient = orient;
596
597 switch (inst->orient)
598 {
599 case E_GADCON_ORIENT_VERT:
600 case E_GADCON_ORIENT_LEFT:
601 case E_GADCON_ORIENT_RIGHT:
602 case E_GADCON_ORIENT_CORNER_LT:
603 case E_GADCON_ORIENT_CORNER_RT:
604 case E_GADCON_ORIENT_CORNER_LB:
605 case E_GADCON_ORIENT_CORNER_RB:
606 default:
607 w = 16;
608 h = 16;
609 break;
610 }
611
612 e_gadcon_client_aspect_set(gcc, w, h);
613 e_gadcon_client_min_size_set(gcc, w, h);
614} 592}
615 593
616static const char * 594static const char *