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
Theodore Ts'o 2008-03-29 14:46:48 -04:00
parent fc03b9c4f2
commit a2447f8c8a
1 changed files with 1 additions and 1 deletions

View File

@ -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':