summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-03-09 01:58:28 +0100
committerZenWalker <[email protected]>2019-03-22 13:14:01 +0100
commitc65f277ade99c9708ddff2bb4faa1160ff369395 (patch)
treed06855f752c86994de8f62f643637203096467d8
parent0fd653578517663c7ba34778fd480ceabd427d53 (diff)
downloadcaja-c65f277ade99c9708ddff2bb4faa1160ff369395.tar.bz2
caja-c65f277ade99c9708ddff2bb4faa1160ff369395.tar.xz
eel-editable-label: call argument with initialized value
Fixes Clang static analyzer warning: eel-editable-label.c:2624:9: warning: 2nd function call argument is an uninitialized value if (pango_layout_line_x_to_index (line, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-rw-r--r--eel/eel-editable-label.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/eel/eel-editable-label.c b/eel/eel-editable-label.c
index 787c71ff..7dce4802 100644
--- a/eel/eel-editable-label.c
+++ b/eel/eel-editable-label.c
@@ -2595,10 +2595,10 @@ eel_editable_label_move_line (EelEditableLabel *label,
gint start,
gint count)
{
- int n_lines, i;
- int x;
PangoLayoutLine *line;
int index;
+ int n_lines, i;
+ int x = 0;
eel_editable_label_ensure_layout (label, FALSE);