diff options
Diffstat (limited to 'xserver/config/config.c')
-rw-r--r-- | xserver/config/config.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xserver/config/config.c b/xserver/config/config.c index b5d634b87..de45cc350 100644 --- a/xserver/config/config.c +++ b/xserver/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; } |