about summary refs log tree commit diff
path: root/shared/c-list
diff options
context:
space:
mode:
authorSebastien Bacher <seb128@ubuntu.com>2021-02-25 11:35:01 +0100
committerSebastien Bacher <seb128@ubuntu.com>2021-02-25 11:49:48 +0100
commit77dea84aa6e816f66dc622cec8ae2668eba3c068 (patch)
tree755536a0ed1fb36c2899e9bff9e092c4008a25c4 /shared/c-list
parent47f08826b44eed651b44dc8bacb5b46bc4c52067 (diff)
parentfd80297a396cc4dd7da4da20208fb360aa369aa7 (diff)
Merge branch 'debian/master' into ubuntu/master
Diffstat (limited to 'shared/c-list')
-rw-r--r--shared/c-list/src/c-list.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/shared/c-list/src/c-list.h b/shared/c-list/src/c-list.h
index 3d44e330..c92aa6f3 100644
--- a/shared/c-list/src/c-list.h
+++ b/shared/c-list/src/c-list.h
@@ -87,10 +87,12 @@ static inline _Bool c_list_is_linked(const CList *what) {
  * c_list_is_empty() - check whether a list is empty
  * @list:               list to check, or NULL
  *
+ * This is the same as !c_list_is_linked().
+ *
  * Return: True if @list is empty, false if not.
  */
 static inline _Bool c_list_is_empty(const CList *list) {
-        return !list || !c_list_is_linked(list);
+        return !c_list_is_linked(list);
 }
 
 /**