Commit 92498ed7 authored by Rémi Duraffort's avatar Rémi Duraffort

Fix potential usage of an uninitialized pointer

parent e1796f3f
......@@ -178,7 +178,7 @@ void sms_queue_free( sms_queue_t* queue )
int sms_queue_put( sms_queue_t *queue, const uint64_t value )
{
/* Remove the last (and oldest) item */
item_t *item, *prev;
item_t *item, *prev = NULL;
int count = 0;
for( item = queue->first; item != NULL; item = item->next )
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment