diff options
author | Mattias Andrée <maandree@kth.se> | 2020-06-11 20:14:09 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2020-06-11 20:14:09 +0200 |
commit | b56c78b9251806c5e5cd3a5fa5d1f6e8e3de351b (patch) | |
tree | aa502d70d9969c333ccf9e70d55fd6dea41623c2 /libaxl_close.c | |
parent | Fix error checking (diff) | |
download | libaxl-b56c78b9251806c5e5cd3a5fa5d1f6e8e3de351b.tar.gz libaxl-b56c78b9251806c5e5cd3a5fa5d1f6e8e3de351b.tar.bz2 libaxl-b56c78b9251806c5e5cd3a5fa5d1f6e8e3de351b.tar.xz |
Misc, mainly connect stuff
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libaxl_close.c')
-rw-r--r-- | libaxl_close.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libaxl_close.c b/libaxl_close.c index 8964f95..b636166 100644 --- a/libaxl_close.c +++ b/libaxl_close.c @@ -4,5 +4,7 @@ int libaxl_close(LIBAXL_CONNECTION *conn) { + if (!conn) + return 0; return liberror_close(libaxl_detach(conn)); } |