Commit 026ddd8e authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

NXresource.c: Fix uninitialized variable

Static analyzer reported: (error) Uninitialized variable: elements Attributes ArcticaProject/nx-libs#905
parent b4ef65d6
......@@ -287,7 +287,7 @@ FreeResource(XID id, RESTYPE skipDeleteFuncType)
register ResourcePtr res;
register ResourcePtr *prev, *head;
register int *eltptr;
int elements;
int elements = 0;
Bool gotOne = FALSE;
#ifdef NXAGENT_SERVER
......
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