diff mbox series

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

Message ID 20190102131318.5765-10-honli@redhat.com (mailing list archive)
State Not Applicable
Headers show
Series [ibsim,01/23] move sim_cmd_file into ibsim/sim_cmd.c | expand

Commit Message

Honggang LI Jan. 2, 2019, 1:13 p.m. UTC
Signed-off-by: Honggang Li <honli@redhat.com>
---
 ibsim/sim_cmd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Hal Rosenstock Jan. 3, 2019, 3:40 p.m. UTC | #1
On 1/2/2019 8:13 AM, Honggang Li wrote:
> Signed-off-by: Honggang Li <honli@redhat.com>

Thanks. Applied.

-- Hal
diff mbox series

Patch

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);