summaryrefslogtreecommitdiffstats
path: root/libvo/vo_directfb2.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvo/vo_directfb2.c')
-rw-r--r--libvo/vo_directfb2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libvo/vo_directfb2.c b/libvo/vo_directfb2.c
index f5b0cb5621..da07a8b81e 100644
--- a/libvo/vo_directfb2.c
+++ b/libvo/vo_directfb2.c
@@ -297,7 +297,7 @@ static uint32_t preinit(const char *arg)
* (set options)
*/
- if (!fb_dev_name && !(fb_dev_name = getenv("FRAMEBUFFER"))) fb_dev_name = "/dev/fb0";
+ if (!fb_dev_name && !(fb_dev_name = getenv("FRAMEBUFFER"))) fb_dev_name = strdup("/dev/fb0");
DFBCHECK (DirectFBSetOption ("fbdev",fb_dev_name));
// uncomment this if you do not wish to create a new vt for DirectFB