Optimization: Removed unneeded strlen() calls several places.

This commit is contained in:
Jan Vidar Krey
2009-03-02 19:41:49 +01:00
parent ac56e7a5b9
commit 26766d8332
6 changed files with 16 additions and 16 deletions

View File

@@ -688,7 +688,7 @@ char* adc_msg_get_argument(struct adc_message* cmd, int offset)
argument[strlen(argument)-1] = 0;
}
if (strlen(argument))
if (*argument)
{
adc_msg_terminate(cmd);
return argument;