user-accounts: Prevent usage of uninitialized value
gtk_widget_translate_coordinates() doesn't have to always set the dest_x argument. Let's initialize the argument before use to prevent usage of uninitialized value, which also prevents "Conditional jump or move depends on uninitialised value(s)" messages from valgrind.
This commit is contained in:
parent
8052466726
commit
7611e07e3f
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ cc_carousel_item_get_x (CcCarouselItem *item,
|
|||
{
|
||||
GtkWidget *widget, *parent;
|
||||
gint width;
|
||||
gint dest_x;
|
||||
gint dest_x = 0;
|
||||
|
||||
parent = GTK_WIDGET (carousel->stack);
|
||||
widget = GTK_WIDGET (item);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue