aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/widgets/e-addressbook-model.c
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/gui/widgets/e-addressbook-model.c')
-rw-r--r--addressbook/gui/widgets/e-addressbook-model.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/addressbook/gui/widgets/e-addressbook-model.c b/addressbook/gui/widgets/e-addressbook-model.c
index d3c59fbcfd..fd67d5fd23 100644
--- a/addressbook/gui/widgets/e-addressbook-model.c
+++ b/addressbook/gui/widgets/e-addressbook-model.c
@@ -419,7 +419,7 @@ ECard *
e_addressbook_model_get_card(EAddressbookModel *model,
int row)
{
- if (model->data && row < model->data_count) {
+ if (model->data && 0 <= row && row < model->data_count) {
ECard *card;
card = e_card_duplicate (model->data[row]);
return card;