]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/basic/list.h
Add SPDX license identifiers to source files under the LGPL
[thirdparty/systemd.git] / src / basic / list.h
index 5962aa42113b5d425cd181241a7f17da9ef43439..80800cf43e209ee7dca7a05c1d9ebe471015b8f5 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1+ */
 #pragma once
 
 /***
                 } else {                                                \
                         if ((_b->name##_prev = _a->name##_prev))        \
                                 _b->name##_prev->name##_next = _b;      \
+                        else                                            \
+                                *_head = _b;                            \
                         _b->name##_next = _a;                           \
                         _a->name##_prev = _b;                           \
                 }                                                       \