Skip to content

Commit

Permalink
fixup! Dynamically get the udevadm hwdb files with a path variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Vivien Kraus committed Sep 30, 2023
1 parent 060dc0f commit 92ab29e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/udev/udevadm-hwdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -688,14 +688,13 @@ static int adm_hwdb(struct udev *udev, int argc, char *argv[]) {
}
trie->nodes_count++;

char *conf_file_path = list_conf_file_path ();
_cleanup_free_ char *conf_file_path = list_conf_file_path ();
if (conf_file_path == NULL) {
rc = EXIT_FAILURE;
goto out;
}
err = conf_files_list_strv_path(&files, ".hwdb", root,
conf_file_path);
free (conf_file_path);
if (err < 0) {
log_error_errno(err, "failed to enumerate hwdb files: %m");
rc = EXIT_FAILURE;
Expand Down

0 comments on commit 92ab29e

Please sign in to comment.