diff options
-rw-r--r-- | proc-region-rw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/proc-region-rw.c b/proc-region-rw.c index c96a079..bf0dad0 100644 --- a/proc-region-rw.c +++ b/proc-region-rw.c @@ -52,7 +52,7 @@ context_init(struct context *ctx, size_t argc, const char *argv[]) ctx->proc.pid = strtoull(argv[arg++], NULL, 10); { - bool w = false, r = false, m = false; + bool m = false, w = false, r = false; const char *mode = argv[arg++]; if (!(m = !strcmp(mode, "map")) && !(w = !strcmp(mode, "write")) && !(r = !strcmp(mode, "read"))) errx(EXIT_FAILURE, "mode must be write or read"); |