[PATCH 02/10] Fix "Using variable 'input_file' before assignment" error