diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2018-07-17 10:12:16 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2018-07-17 10:36:08 +1000 |
commit | ad5d2fef7202e07581c1a3464ff54ada8565282b (patch) | |
tree | 6984efe77a05615cbaa7aeaa929c17ce3bbdddd5 /tools/libinput-quirks.c | |
parent | 8362031064e8c788b1645488002e0a556ea0466b (diff) |
tools: change prototype of the builddir lookup function
Only one place really needs the return argument, so we might as well just pass
the memory to be returned in.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'tools/libinput-quirks.c')
-rw-r--r-- | tools/libinput-quirks.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/libinput-quirks.c b/tools/libinput-quirks.c index b9c38142..7952d351 100644 --- a/tools/libinput-quirks.c +++ b/tools/libinput-quirks.c @@ -162,12 +162,8 @@ main(int argc, char **argv) /* Overriding the data dir means no custom override file */ if (!data_path) { - char *builddir; - - builddir = tools_execdir_is_builddir(); - if (builddir) { + if (tools_execdir_is_builddir(NULL, 0)) { data_path = LIBINPUT_QUIRKS_SRCDIR; - free(builddir); } else { data_path = LIBINPUT_QUIRKS_DIR; override_file = LIBINPUT_QUIRKS_OVERRIDE_FILE; |