Skip to content

Commit

Permalink
fix corrupt_rdb.c bug.Let the name of input rdb file name be valid.
Browse files Browse the repository at this point in the history
  • Loading branch information
varianfeng authored and antirez committed Mar 1, 2019
1 parent b19e8b9 commit ab1e87f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/corrupt_rdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ int main(int argc, char **argv) {
}

srand(time(NULL));
char *filename = argv[1];
cycles = atoi(argv[2]);
fd = open("dump.rdb",O_RDWR);
fd = open(filename,O_RDWR);
if (fd == -1) {
perror("open");
exit(1);
Expand Down

0 comments on commit ab1e87f

Please sign in to comment.