mirror of https://github.com/vitalif/e2fsprogs
e2fsck: Avoid core dump when using the -N option
This bug was accidentally introduced by commit 1dc506cb
.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
bitmap-optimize
parent
fc03b9c4f2
commit
a2447f8c8a
|
@ -737,7 +737,7 @@ static errcode_t PRS(int argc, char *argv[], e2fsck_t *ret_ctx)
|
|||
break;
|
||||
#endif
|
||||
case 'N':
|
||||
ctx->device_name = optarg;
|
||||
ctx->device_name = string_copy(ctx, optarg, 0);
|
||||
break;
|
||||
#ifdef ENABLE_SWAPFS
|
||||
case 's':
|
||||
|
|
Loading…
Reference in New Issue