diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2019-03-25 09:43:57 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2019-03-25 09:43:57 (GMT) |
commit | 8e275f286138db88140d1643d1008f130ba7f484 (patch) | |
tree | eea120992ae5a9c2a341e3bee336620ecdc65a6f /src/core | |
parent | fd0df8f884336fc69bd0938453f9712c166f08c8 (diff) |
Avoided stack overflows with empty dynamic parameters.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/params.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/params.c b/src/core/params.c index 3d0880a..6467182 100644 --- a/src/core/params.c +++ b/src/core/params.c @@ -204,16 +204,16 @@ bool load_main_config_parameters(void) param = g_generic_config_create_param(config, MPK_TOOLTIP_MAX_STRINGS, CPT_INTEGER, 5); if (param == NULL) return false; - param = g_generic_config_create_param(config, MPK_LINK_DEFAULT, CPT_COLOR, ((GdkRGBA []) {{ 0, 0, 0, 1.0 }})); + param = g_generic_config_create_param(config, MPK_LINK_DEFAULT, CPT_COLOR, ((GdkRGBA []) { { 0, 0, 0, 1.0 } })); if (param == NULL) return false; - param = g_generic_config_create_param(config, MPK_LINK_BRANCH_TRUE, CPT_COLOR, ((GdkRGBA []) {{ 0, 0.6, 0, 1.0 }})); + param = g_generic_config_create_param(config, MPK_LINK_BRANCH_TRUE, CPT_COLOR, ((GdkRGBA []) { { 0, 0.6, 0, 1.0 } })); if (param == NULL) return false; - param = g_generic_config_create_param(config, MPK_LINK_BRANCH_FALSE, CPT_COLOR, ((GdkRGBA []) {{ 0.8, 0, 0, 1.0 }})); + param = g_generic_config_create_param(config, MPK_LINK_BRANCH_FALSE, CPT_COLOR, ((GdkRGBA []) { { 0.8, 0, 0, 1.0 } })); if (param == NULL) return false; - param = g_generic_config_create_param(config, MPK_LINK_LOOP, CPT_COLOR, ((GdkRGBA []) {{ 0, 0, 0.8, 1.0 }})); + param = g_generic_config_create_param(config, MPK_LINK_LOOP, CPT_COLOR, ((GdkRGBA []) { { 0, 0, 0.8, 1.0 } })); if (param == NULL) return false; param = g_generic_config_create_param(config, MPK_KEYBINDINGS_EDIT, CPT_STRING, "<Shift>F2"); |