Skip to content
Snippets Groups Projects
Commit 227a0640 authored by frtabu's avatar frtabu
Browse files

first set of cppcheck fixes

parent 501ae74c
No related branches found
No related tags found
5 merge requests!650Release v1.1.0 Candidate,!588Develop nr merge,!508Develop integration 2019 week 07 v2,!507Develop integration 2019 week 07,!493first set of cppcheck fixes
......@@ -357,7 +357,6 @@ int setgetvar(int moduleindex,char getorset,char *params) {
memset(varname,0,sizeof(varname));
n = sscanf(params,"%19s %ms",varname,&varval);
for ( i=0 ; telnetparams.CmdParsers[moduleindex].var[i].varvalptr != NULL ; i++) {
if ( strncasecmp(telnetparams.CmdParsers[moduleindex].var[i].varname,varname,strlen(telnetparams.CmdParsers[moduleindex].var[i].varname)) == 0) {
if (n > 0 && (getorset == 'g' || getorset == 'G')) {
......@@ -478,7 +477,6 @@ int process_command(char *buf) {
rt=CMDSTATUS_NOTFOUND;
j = sscanf(buf,"%9s %9s %2000[^\t\n]",modulename,cmd,cmdb);
if (telnetparams.telnetdbg > 0)
printf("process_command: %i words, module=%s cmd=%s, parameters= %s\n",j,modulename,cmd,cmdb);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment