summaryrefslogtreecommitdiff
path: root/fonttosfnt.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2023-04-01 12:52:05 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2023-04-01 12:52:05 -0700
commit103579f030bfead4a1f821734dd6dbaf823c5527 (patch)
treecaec556059b3838deefa7a7999db4958f1399e7f /fonttosfnt.c
parent4208f2d0dd928a2e627a2284337302be62b3967a (diff)
Variable scope reductions as recommended by cppcheck
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'fonttosfnt.c')
-rw-r--r--fonttosfnt.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fonttosfnt.c b/fonttosfnt.c
index 7828b79..e66d0d2 100644
--- a/fonttosfnt.c
+++ b/fonttosfnt.c
@@ -47,7 +47,6 @@ int
main(int argc, char **argv)
{
int i;
- int rc;
char *output = NULL;
FontPtr font;
@@ -113,11 +112,11 @@ main(int argc, char **argv)
"The creation of an OpenType font collection is recommended.\n");
if(i == argc) {
- rc = readFile(NULL, font);
+ int rc = readFile(NULL, font);
if(rc != 0)
exit(1);
} else while(i < argc) {
- rc = readFile(argv[i], font);
+ int rc = readFile(argv[i], font);
if(rc != 0)
exit(1);
i++;