diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-10-16 10:58:05 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-10-16 10:58:05 -0700 |
commit | 122fa8689837bc5a5166432609f351c200a17ef6 (patch) | |
tree | 06b214c2bbfbd1eccb33659556025bf3168af243 /xfd.c | |
parent | da378df9565f7a8e1e086d1676c6742a5ca9d5f4 (diff) |
Variable scope reductions as recommended by cppcheck
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'xfd.c')
-rw-r--r-- | xfd.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -431,7 +431,6 @@ change_page(int page) { long oldstart, newstart; int ncols, nrows; - char buf[256]; Arg arg; arg.name = XtNstartChar; @@ -453,6 +452,7 @@ change_page(int page) if (!page || newstart != oldstart) { unsigned int row = (unsigned int) ((newstart >> 8)); unsigned int col = (unsigned int) (newstart & 0xff); + char buf[256]; XtSetArg (arg, XtNlabel, buf); snprintf (buf, sizeof(buf), xfd_resources.start_format, |