diff options
author | John Martin <John.M.Martin@Sun.COM> | 2009-03-26 13:31:09 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-03-26 13:31:09 -0700 |
commit | 9f47f2b67f0f105c1c396da171ca46b06905301f (patch) | |
tree | fa7ed56915b2a325042d0bf0f691138320db8ec1 | |
parent | 02187ef55aa08b7ca0b354257f9bf1935420dd36 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |