diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2020-01-25 22:47:57 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2020-05-07 14:57:15 +0200 |
commit | 026ddd8e1a3aee5587fb1b71fbb4ab26c9d366ff (patch) | |
tree | c00a28f7672dd9e13e34eb1a44ff16ac068b24b9 /nx-X11 | |
parent | b4ef65d6693981617456cbf647453394abdb6cc5 (diff) | |
download | nx-libs-026ddd8e1a3aee5587fb1b71fbb4ab26c9d366ff.tar.gz nx-libs-026ddd8e1a3aee5587fb1b71fbb4ab26c9d366ff.tar.bz2 nx-libs-026ddd8e1a3aee5587fb1b71fbb4ab26c9d366ff.zip |
NXresource.c: Fix uninitialized variable
Static analyzer reported: (error) Uninitialized variable: elements
Attributes ArcticaProject/nx-libs#905
Diffstat (limited to 'nx-X11')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/NXresource.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/NXresource.c b/nx-X11/programs/Xserver/hw/nxagent/NXresource.c index 5777f7bb9..ca2175752 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/NXresource.c +++ b/nx-X11/programs/Xserver/hw/nxagent/NXresource.c @@ -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 |