changeset 24449:a343da3620d3

12156 libsasl: 'prev' may be used uninitialized in this function Reviewed by: John Levon <john.levon@joyent.com> Reviewed by: Matthias Scheler <mscheler@tintri.com> Approved by: Dan McDonald <danmcd@joyent.com>
author Toomas Soome <tsoome@me.com>
date Sat, 04 Jan 2020 20:10:23 +0200
parents b115502d4058
children 17fd46c2fcfb
files usr/src/lib/libsasl/lib/common.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/lib/libsasl/lib/common.c	Wed Jan 08 10:23:12 2020 +0000
+++ b/usr/src/lib/libsasl/lib/common.c	Sat Jan 04 20:10:23 2020 +0200
@@ -1301,7 +1301,7 @@
 
 int _is_sun_reg(void *mech)
 {
-	reg_list_t *r, *prev;
+	reg_list_t *r, *prev = NULL;
 	int is_reg = 0;
 
 	LOCK_MUTEX(&reg_mutex);