[ibsim patch 10/23] sim_cmd.c: do_set_guid should dereference the char pointer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Honggang Li <honli@xxxxxxxxxx>
---
 ibsim/sim_cmd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ibsim/sim_cmd.c b/ibsim/sim_cmd.c
index fa5ff9baea6b..e2fe6ba6dddb 100644
--- a/ibsim/sim_cmd.c
+++ b/ibsim/sim_cmd.c
@@ -494,7 +494,7 @@ static int do_set_guid(FILE * f, char *line)
 	while (isspace(*s))
 		s++;
 
-	if (!s)
+	if (!*s)
 		return 0;
 
 	new_guid = strtoull(s, &end, 0);
-- 
2.15.0-rc1




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux