Always initialise return value in compute_desc_id in rendcommon.c

Fix on e6a581f126, released in 0.2.7.1-alpha.
This commit is contained in:
teor 2015-06-03 03:48:46 +10:00
parent b3f79da0d5
commit 2b73dbf2a4
2 changed files with 5 additions and 1 deletions

View file

@ -0,0 +1,4 @@
o Minor fixes (threads, comments):
- Always initialise return value in compute_desc_id in rendcommon.c
Patch by "teor".
Fix on e6a581f126ba, released in 0.2.7.1-alpha.

View file

@ -1417,7 +1417,7 @@ rend_data_dup(const rend_data_t *data)
static int
compute_desc_id(rend_data_t *rend_data)
{
int ret;
int ret = 0;
unsigned replica;
time_t now = time(NULL);