svn commit: r326065 - head/sys/cam
Alan Somers
asomers at FreeBSD.org
Tue Nov 21 16:38:32 UTC 2017
Author: asomers
Date: Tue Nov 21 16:38:30 2017
New Revision: 326065
URL: https://svnweb.freebsd.org/changeset/base/326065
Log:
Fix uninitialized variable from 326034
Reported by: Coverity
CID: 1382887
MFC after: 20 days
X-MFC-With: 326034
Sponsored by: Spectra Logic Corp
Modified:
head/sys/cam/cam.c
Modified: head/sys/cam/cam.c
==============================================================================
--- head/sys/cam/cam.c Tue Nov 21 16:03:21 2017 (r326064)
+++ head/sys/cam/cam.c Tue Nov 21 16:38:30 2017 (r326065)
@@ -235,7 +235,8 @@ cam_strmatch(const u_int8_t *str, const u_int8_t *patt
return (1);
} else if (*pattern == '[') {
int negate_range, ok;
- uint8_t pc, sc;
+ uint8_t pc = UCHAR_MAX;
+ uint8_t sc;
ok = 0;
sc = *str++;
More information about the svn-src-head
mailing list