diff options
Diffstat (limited to 'tools/voicefont.c')
-rw-r--r-- | tools/voicefont.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/voicefont.c b/tools/voicefont.c index 9e5603e458..4da67fabed 100644 --- a/tools/voicefont.c +++ b/tools/voicefont.c | |||
@@ -217,6 +217,7 @@ int voicefont(FILE* voicefontids,int targetnum,char* filedir, FILE* output) | |||
217 | #ifndef RBUTIL | 217 | #ifndef RBUTIL |
218 | int main (int argc, char** argv) | 218 | int main (int argc, char** argv) |
219 | { | 219 | { |
220 | FILE *ids, *output; | ||
220 | 221 | ||
221 | if (argc < 2) | 222 | if (argc < 2) |
222 | { | 223 | { |
@@ -228,14 +229,14 @@ int main (int argc, char** argv) | |||
228 | return -1; | 229 | return -1; |
229 | } | 230 | } |
230 | 231 | ||
231 | FILE* ids = fopen(argv[1], "r"); | 232 | ids = fopen(argv[1], "r"); |
232 | if (ids == NULL) | 233 | if (ids == NULL) |
233 | { | 234 | { |
234 | printf("Error opening language file %s\n", argv[1]); | 235 | printf("Error opening language file %s\n", argv[1]); |
235 | return -2; | 236 | return -2; |
236 | } | 237 | } |
237 | 238 | ||
238 | FILE* output = fopen(argv[4], "wb"); | 239 | output = fopen(argv[4], "wb"); |
239 | if (output == NULL) | 240 | if (output == NULL) |
240 | { | 241 | { |
241 | printf("Error opening output file %s\n", argv[4]); | 242 | printf("Error opening output file %s\n", argv[4]); |