[cheese] effects: don't use uninitialized ints
- From: Filippo Argiolas <fargiolas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese] effects: don't use uninitialized ints
- Date: Thu, 22 Apr 2010 06:23:05 +0000 (UTC)
commit e105bf2d5e04043c9ac3944ed4b1409ae7e9e5f0
Author: Filippo Argiolas <filippo argiolas gmail com>
Date: Thu Apr 22 08:21:52 2010 +0200
effects: don't use uninitialized ints
src/cheese-effect-chooser.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/cheese-effect-chooser.c b/src/cheese-effect-chooser.c
index 36d0b89..28a22f8 100644
--- a/src/cheese-effect-chooser.c
+++ b/src/cheese-effect-chooser.c
@@ -239,11 +239,12 @@ cheese_effect_chooser_button_press_event_cb (GtkWidget *widget, GdkEventButton *
GtkAllocation allocation;
int i;
int col, row;
- int slot = (row * BOARD_COLS + col);
+ int slot;
gtk_widget_get_allocation (widget, &allocation);
col = (int) (button_event->x / allocation.width * BOARD_COLS);
row = (int) (button_event->y / allocation.height * BOARD_ROWS);
+ slot = (row * BOARD_COLS + col);
priv->selected[slot] = !priv->selected[slot];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]