summary refs log tree commit diff
path: root/shared/c-list
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2021-02-11 18:11:46 +0100
committerMichael Biebl <biebl@debian.org>2021-02-11 18:11:46 +0100
commit80ec1decc49c72efec2a8b87c06245c92c0ab807 (patch)
treee3b229aa94e8dcf0590f2317664176e7b8f7607b /shared/c-list
parent65f86e8f56267192d42f2b629fc6b0c99fb9cd0c (diff)
New upstream version 1.29.90 upstream/1.29.90
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);
 }
 
 /**