Thread (1354 messages) 1354 messages, 168 authors, 2017-04-12

Re: staging: wilc1000: Reduce scope for a few variables in mac_ioctl()

From: SF Markus Elfring <hidden>
Date: 2016-07-26 06:26:27
Also in: linux-wireless, lkml

quoted
-			if (strncasecmp(buff, "RSSI", length) = 0) {
+			if (strncasecmp(buff, "RSSI", 0) = 0) {
+				s8 rssi;
+
Um, please think a second about if it makes any sense at all to compare 
zero chars of two strings.
Under which circumstances should the variable "length" contain an other
value than zero?

How can this open issue be fixed better?

Regards,
Markus
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help