Skip to content

Commit 124cf80

Browse files
committed
examples: fix argument checking
1 parent 9ed0bc2 commit 124cf80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/logfile_download/logfile_download.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ void usage(const std::string& bin_name)
3535

3636
int main(int argc, char** argv)
3737
{
38-
if (argc > 3) {
38+
if (argc < 3) {
3939
usage(argv[0]);
4040
return 1;
4141
}

0 commit comments

Comments
 (0)