Skip to content

Commit 67470ca

Browse files
committed
Fix argc check
1 parent 3705415 commit 67470ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/kvssink_intermittent_sample.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ int main(int argc, char *argv[]) {
216216
/* Parse input arguments */
217217

218218
// Check for invalid argument count, get stream name.
219-
if (argc > 3) {
219+
if (argc > 4) {
220220
LOG_ERROR("[KVS sample] Invalid argument count, too many arguments.");
221221
LOG_INFO("[KVS sample] Usage: " << argv[0] << " <streamName (optional)> <testsrc or devicesrc (optional)> <runtime seconds (optional)>");
222222
return -1;

0 commit comments

Comments
 (0)