[PATCH v2] tools: mkimage: Fix nullptr at strchr()