summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo De La Garza <pdelagarza@nvidia.com>2017-07-27 11:39:58 -0700
committerAaron Plattner <aplattner@nvidia.com>2017-10-03 10:28:19 -0700
commit245cc37e62bd15d8fa90d30270bb7300de617d73 (patch)
treed19bbbb975229b862f407f893246a09a10fa2401
parent4025656e46084ede66db676df3ae2051db10b565 (diff)
Fix for un-initialized variables valgrind error
The variable on this change are liable to not be initialized if the function that is meant to initialize errors out. And the uninitialized variable would still be passed for the creation of a widget. Since in the case of this happening such widget won't be used anyways, chances of this causing trouble are slim, but still we shouldn't have it. Additionally it shows on valgrind so it creates noise when trying to troubleshoot something else.
-rw-r--r--src/gtk+-2.x/ctkopengl.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/gtk+-2.x/ctkopengl.c b/src/gtk+-2.x/ctkopengl.c
index 30321f1..eb71e29 100644
--- a/src/gtk+-2.x/ctkopengl.c
+++ b/src/gtk+-2.x/ctkopengl.c
@@ -283,20 +283,20 @@ GtkWidget* ctk_opengl_new(CtrlTarget *ctrl_target,
GtkAdjustment *adjustment;
GtkWidget *menu;
- gint sync_to_vblank;
- gint flipping_allowed;
- gint gsync_allowed;
- gint show_gsync_visual_indicator;
- gint force_stereo;
- gint xinerama_stereo;
- gint stereo_eyes_exchange;
- gint stereo_swap_mode;
+ gint sync_to_vblank = 0;
+ gint flipping_allowed = 0;
+ gint gsync_allowed = 0;
+ gint show_gsync_visual_indicator = 0;
+ gint force_stereo = 0;
+ gint xinerama_stereo = 0;
+ gint stereo_eyes_exchange = 0;
+ gint stereo_swap_mode = 0;
CtrlAttributeValidValues image_settings_valid;
- gint image_settings_value;
- gint aa_line_gamma;
- gint use_conformant_clamping;
- gint show_sli_visual_indicator;
- gint show_multigpu_visual_indicator;
+ gint image_settings_value = 0;
+ gint aa_line_gamma = 0;
+ gint use_conformant_clamping = 0;
+ gint show_sli_visual_indicator = 0;
+ gint show_multigpu_visual_indicator = 0;
ReturnStatus ret_sync_to_vblank;
ReturnStatus ret_flipping_allowed;