Revert "Fix uninitialized variable warnings reported by clang"
Crashes at startup:
dmt:~/git/xserver% ./hw/kdrive/ephyr/Xephyr :1
(EE) Backtrace:
(EE) 0: ./hw/kdrive/ephyr/Xephyr (OsSigHandler+0x29) [0x47c8f9]
(EE) 1: /lib64/libc.so.6 (__restore_rt+0x0) [0x7f38d4de6b1f]
(EE) 2: ./hw/kdrive/ephyr/Xephyr (InitNotifyFds+0x17) [0x478697]
(EE) 3: ./hw/kdrive/ephyr/Xephyr (OsInit+0x1e) [0x47c99e]
(EE) 4: ./hw/kdrive/ephyr/Xephyr (dix_main+0x11c) [0x446efc]
(EE) 5: /lib64/libc.so.6 (__libc_start_main+0xf0) [0x7f38d4dd2580]
(EE) 6: ./hw/kdrive/ephyr/Xephyr (_start+0x29) [0x427099]
(EE) 7: ? (?+0x29) [0x29]
(EE)
(EE) Segmentation fault at address 0x0
This reverts commit a221d4737c
.
This commit is contained in:
parent
a221d4737c
commit
792176417f
|
@ -304,8 +304,7 @@ xorg_list_is_empty(struct xorg_list *head)
|
|||
* @param member Member name of the struct xorg_list in the list elements.
|
||||
*
|
||||
*/
|
||||
#define xorg_list_for_each_entry(pos, head, member) \
|
||||
pos = NULL; \
|
||||
#define xorg_list_for_each_entry(pos, head, member) \
|
||||
for (pos = __container_of((head)->next, pos, member); \
|
||||
&pos->member != (head); \
|
||||
pos = __container_of(pos->member.next, pos, member))
|
||||
|
@ -318,7 +317,6 @@ xorg_list_is_empty(struct xorg_list *head)
|
|||
* See xorg_list_for_each_entry for more details.
|
||||
*/
|
||||
#define xorg_list_for_each_entry_safe(pos, tmp, head, member) \
|
||||
pos = NULL; \
|
||||
for (pos = __container_of((head)->next, pos, member), \
|
||||
tmp = __container_of(pos->member.next, pos, member); \
|
||||
&pos->member != (head); \
|
||||
|
|
Loading…
Reference in New Issue
Block a user