diff options
author | Pablo Barciela <[email protected]> | 2019-04-22 17:37:22 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-04-29 11:53:49 +0200 |
commit | a2e5ae7dbeb6f16a9a560b070add4a2e2786989a (patch) | |
tree | e99271afc27c365bb4f283efe6758469f07d706c /src | |
parent | b0e4fe242b2b7b0a980d163bbf294f588b084091 (diff) | |
download | mate-calc-a2e5ae7dbeb6f16a9a560b070add4a2e2786989a.tar.bz2 mate-calc-a2e5ae7dbeb6f16a9a560b070add4a2e2786989a.tar.xz |
math-buttons: Fix cppcheck warning: Identical inner 'return'
Fixes cppcheck warning:
[src/math-buttons.c:513] -> [src/math-buttons.c:514]: (warning) Identical inner 'return' condition is always true.
Diffstat (limited to 'src')
-rw-r--r-- | src/math-buttons.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/math-buttons.c b/src/math-buttons.c index 1d96b3e..a97d6ee 100644 --- a/src/math-buttons.c +++ b/src/math-buttons.c @@ -511,7 +511,7 @@ load_mode(MathButtons *buttons, ButtonMode mode) } if (*panel) - return *panel; + goto out; builder = *builder_ptr = gtk_builder_new(); // FIXME: Show dialog if failed to load @@ -663,6 +663,7 @@ load_mode(MathButtons *buttons, ButtonMode mode) display_changed_cb(buttons->priv->equation, NULL, buttons); +out: return *panel; } |