Skip to content

Commit

Permalink
test_rgw_admin_log.cc: lenght() returns unsigned
Browse files Browse the repository at this point in the history
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
  • Loading branch information
dalgaaf committed Apr 13, 2018
1 parent c074a04 commit 0c478d7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/test/test_rgw_admin_log.cc
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,7 @@ int test_helper::extract_input(int argc, char *argv[]){
ERR_CHECK_NEXT_PARAM(rgw_admin_path);
}else return -1;
}
if(host.length() <= 0 ||
rgw_admin_path.length() <= 0)
if(!host.length() || !rgw_admin_path.length())
return -1;
return 0;
}
Expand Down

0 comments on commit 0c478d7

Please sign in to comment.