diff options
author | Pablo Barciela <[email protected]> | 2019-03-09 01:58:28 +0100 |
---|---|---|
committer | monsta <[email protected]> | 2019-07-23 15:53:54 +0300 |
commit | cdfc9f8e90ed44cb7ce5a42e2ab100fde4fb89ab (patch) | |
tree | 5679b4e147fb5b9e3378e58f94d2a4d0d1d292b5 /eel | |
parent | d69846132a0e172521ee10741069ff60152ad8a8 (diff) | |
download | caja-cdfc9f8e90ed44cb7ce5a42e2ab100fde4fb89ab.tar.bz2 caja-cdfc9f8e90ed44cb7ce5a42e2ab100fde4fb89ab.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,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Diffstat (limited to 'eel')
-rw-r--r-- | eel/eel-editable-label.c | 4 |
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); |