summaryrefslogtreecommitdiff
path: root/read.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2018-07-31 11:43:01 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2018-08-01 08:31:33 +1000
commit6c37ebcfd8992fdf88da225bd1de7ca40dd69240 (patch)
tree5869a69ebd697b28183bad757fd69426997ffd16 /read.c
parent65d2d8f9cbe744b4c6c64d377f7ffd5d88ee0b1d (diff)
Remove shadowing rc variable
All code paths assign rc and heck it immedately after. We can re-use the one from the outer loop. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'read.c')
-rw-r--r--read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/read.c b/read.c
index bee518c..98522b5 100644
--- a/read.c
+++ b/read.c
@@ -107,7 +107,7 @@ readFile(char *filename, FontPtr font)
if(font->numNames == 0 && face->style_name && face->family_name) {
char *full_name, *unique_name;
BDF_PropertyRec prop;
- int rc, i;
+ int i;
if(strcmp(face->style_name, "Regular") == 0)
full_name = sprintf_alloc("%s", face->family_name);
else