summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Martin <John.M.Martin@Sun.COM>2009-03-26 13:31:09 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2009-03-26 13:31:09 -0700
commit9f47f2b67f0f105c1c396da171ca46b06905301f (patch)
treefa7ed56915b2a325042d0bf0f691138320db8ec1
parent02187ef55aa08b7ca0b354257f9bf1935420dd36 (diff)
Sun bug 6822628: constype returns unexpected value
<http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6822628> Declare fbid as static to ensure the string returned from it is still present when the function returns. Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
-rw-r--r--constype.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/constype.c b/constype.c
index 11f3948..9d68a43 100644
--- a/constype.c
+++ b/constype.c
@@ -149,7 +149,7 @@ wu_fbid(const char* devname, char** fbname, int* fbtype)
int fd, ioctl_ret;
#ifdef VIS_GETIDENTIFIER
int vistype;
- struct vis_identifier fbid;
+ static struct vis_identifier fbid;
#endif