From 43fde054dd2c3615461000325afbe08ea3e56823 Mon Sep 17 00:00:00 2001 From: Erwan Velu Date: Sun, 8 Nov 2009 21:36:02 +0100 Subject: [PATCH] hdt: Fixing building warning Impact: Avoid warning during compilation Avoid warning during gcc compilation --- com32/hdt/hdt-cli.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/com32/hdt/hdt-cli.c b/com32/hdt/hdt-cli.c index 060f953..892e5fb 100644 --- a/com32/hdt/hdt-cli.c +++ b/com32/hdt/hdt-cli.c @@ -764,7 +764,8 @@ void start_auto_mode(struct s_hardware *hardware) /* Searching & saving all commands */ mypch = strtok (temp,AUTO_SEPARATOR); while (mypch != NULL) { - if ((strlen(remove_spaces(mypch))>0) && (remove_spaces(mypch)[0] != AUTO_SEPARATOR)) { + if ((strlen(remove_spaces(mypch))>0) && + (remove_spaces(mypch)[0] != AUTO_SEPARATOR[0])) { nb_commands++; if ((commands[nb_commands]=malloc(AUTO_COMMAND_SIZE)) != NULL) { sprintf(commands[nb_commands],"%s",remove_spaces(mypch)); -- 2.7.4