arch/sim: Fix X11 segmentation fault when CONFIG_SIM_X11NOSHM isn't enabled

up_x11mapsharedmem should assign the share memory to g_framebuffer
This commit is contained in:
Xiang Xiao
2020-02-10 18:01:31 +08:00
committed by Gregory Nutt
parent bbd102808d
commit 856b62ca09
+1 -1
View File
@@ -317,8 +317,8 @@ static inline int up_x11mapsharedmem(int depth, unsigned int fblen)
goto shmerror;
}
g_framebuffer = (unsigned char *)g_image->data;
g_shmcheckpoint++;
}
else
#endif