]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udevadm-info: move static dtor closer to args
authorDavid Tardon <dtardon@redhat.com>
Thu, 17 Apr 2025 08:20:33 +0000 (10:20 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 9 May 2025 03:10:51 +0000 (12:10 +0900)
src/udev/udevadm-info.c

index 1838d12f5f5ade6be09c64ad332223892af067a3..c358a503ff55a2e33efef3a16ffc2880f51f8847 100644 (file)
@@ -61,6 +61,8 @@ static usec_t arg_wait_for_initialization_timeout = 0;
 PagerFlags arg_pager_flags = 0;
 static sd_json_format_flags_t arg_json_format_flags = SD_JSON_FORMAT_OFF;
 
+STATIC_DESTRUCTOR_REGISTER(arg_properties, strv_freep);
+
 /* Put a limit on --tree descent level to not exhaust our stack */
 #define TREE_DEPTH_MAX 64
 
@@ -83,8 +85,6 @@ typedef struct SysAttr {
         const char *value;
 } SysAttr;
 
-STATIC_DESTRUCTOR_REGISTER(arg_properties, strv_freep);
-
 static int sysattr_compare(const SysAttr *a, const SysAttr *b) {
         assert(a);
         assert(b);