diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2018-09-11 19:34:58 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2018-09-11 19:34:58 +0000 |
commit | 5b6cb0ac05beef2969cd97b1bcbc312986e27d63 (patch) | |
tree | 23bf7c589f43111b70ef8445658f28e7a7b1df02 /dist/libxcb/src/xcb_util.c | |
parent | 26e88f304a40144b9cc2579824a419bd96418454 (diff) |
Update to libxcb 1.13. ok tb@
Diffstat (limited to 'dist/libxcb/src/xcb_util.c')
-rw-r--r-- | dist/libxcb/src/xcb_util.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dist/libxcb/src/xcb_util.c b/dist/libxcb/src/xcb_util.c index a3357efde..a16270c63 100644 --- a/dist/libxcb/src/xcb_util.c +++ b/dist/libxcb/src/xcb_util.c @@ -265,6 +265,8 @@ static int _xcb_open(const char *host, char *protocol, const int display) struct stat sbuf; if (0 == stat(host, &sbuf)) { file = strdup(host); + if(file == NULL) + return -1; filelen = actual_filelen = strlen(file); } else #endif |