0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

Remove a strlen(x) == 0

This commit is contained in:
Mathias Stearn 2010-06-29 18:00:07 -04:00
parent 6a658fef4e
commit a95c55925c

View File

@ -138,7 +138,8 @@ void shellHistoryDone(){
#endif
}
void shellHistoryAdd( const char * line ){
if ( strlen(line) == 0 )
#ifdef USE_READLINE
if ( line[0] == '\0' )
return;
// dont record duplicate lines
@ -146,7 +147,7 @@ void shellHistoryAdd( const char * line ){
if (lastLine == line)
return;
lastLine = line;
#ifdef USE_READLINE
if ((strstr(line, ".auth")) == NULL)
add_history( line );
#endif