From b8444429562c8eda11c9c72f180092fa6841213f Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Tue, 15 Jun 2010 14:11:04 +0200 Subject: Descriptors start at 1. --- ncr-data.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ncr-data.c') diff --git a/ncr-data.c b/ncr-data.c index 0a5d8eee239..ce9635c0956 100644 --- a/ncr-data.c +++ b/ncr-data.c @@ -50,7 +50,7 @@ void ncr_data_list_deinit(struct list_sem_st* lst) static ncr_data_t _ncr_data_get_new_desc( struct list_sem_st* lst) { struct data_item_st* item; -int mx = 0; +int mx = 1; list_for_each_entry(item, &lst->list, list) { mx = max(mx, item->desc); -- cgit