[PATCH font-util 1/2] bdftruncate: Properly support -w and +w
Jeremy Huddleston
jeremyhu at apple.com
Thu Apr 28 00:46:51 PDT 2011
Regression introduced by fb486bb1a5038912d064291b12c7aef5da3d8b63
Found-by: clang static analyzer
Signed-off-by: Jeremy Huddleston <jeremyhu at apple.com>
---
bdftruncate.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/bdftruncate.c b/bdftruncate.c
index a527305..2bd04f8 100644
--- a/bdftruncate.c
+++ b/bdftruncate.c
@@ -46,7 +46,6 @@ static void usage(void);
static int opt_minus_w;
static int opt_plus_w;
-static int removewide;
static unsigned long threshold;
static int
@@ -70,7 +69,7 @@ parse_threshold(const char *str)
}
static void
-process_line(const char *line)
+process_line(const char *line, int removewide)
{
if (strncmp(line, "ENCODING", 8) == 0) {
unsigned long enc;
@@ -178,7 +177,7 @@ main(int argc, char **argv)
break;
}
}
- process_line(line);
+ process_line(line, removewide);
}
return EXIT_SUCCESS;
--
1.7.4.1
More information about the xorg-devel
mailing list