diff options
Diffstat (limited to 'xorg-server/config')
-rw-r--r-- | xorg-server/config/config.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xorg-server/config/config.c b/xorg-server/config/config.c index b5d634b87..de45cc350 100644 --- a/xorg-server/config/config.c +++ b/xorg-server/config/config.c @@ -130,7 +130,8 @@ device_is_duplicate(const char *config_info) struct OdevAttributes * config_odev_allocate_attributes(void) { - struct OdevAttributes *attribs = XNFcalloc(sizeof (struct OdevAttributes)); + struct OdevAttributes *attribs = + xnfcalloc(1, sizeof (struct OdevAttributes)); attribs->fd = -1; return attribs; } |