X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fbasic%2Fkhash.c;fp=src%2Fbasic%2Fkhash.c;h=84648dc1c9463debfeca1e1d8cff9e1e3f9ff4be;hp=c7884207ff5fcddb65513711e09d24fa317725ec;hb=a485a218fb4fc1baa0b279314b737ea0e36aa397;hpb=121b6a7693118c1e60fe95cdfbafcab945db8d60
diff --git a/src/basic/khash.c b/src/basic/khash.c
index c7884207f..84648dc1c 100644
--- a/src/basic/khash.c
+++ b/src/basic/khash.c
@@ -1,20 +1,20 @@
/***
- This file is part of elogind.
+ This file is part of systemd.
Copyright 2016 Lennart Poettering
- elogind is free software; you can redistribute it and/or modify it
+ systemd is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
- elogind is distributed in the hope that it will be useful, but
+ systemd is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
- along with elogind; If not, see .
+ along with systemd; If not, see .
***/
#include
@@ -143,7 +143,7 @@ int khash_dup(khash *h, khash **ret) {
copy->fd = -1;
copy->algorithm = strdup(h->algorithm);
- if (!copy)
+ if (!copy->algorithm)
return -ENOMEM;
copy->fd = accept4(h->fd, NULL, 0, SOCK_CLOEXEC);