1diff --git a/main.c b/main.c
2index 07f53cb..f2265df 100644
3--- a/main.c
4+++ b/main.c
5@@ -369,7 +369,7 @@ int main(int argc, char **argv) {
6 return EXIT_FAILURE;
7 }
8 nca_ctx.tool_ctx->base_file_type = BASEFILE_FAKE;
9- nca_ctx.tool_ctx->base_file++; /* Guarantees base_file != NULL. I'm so sorry. */
10+ if (!nca_ctx.tool_ctx->base_file) nca_ctx.tool_ctx->base_file = (FILE*) 1;
11 break;
12 case 32:
13 tool_ctx.action |= ACTION_ONLYUPDATEDROMFS;