diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-07-17 10:09:50 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-07-17 10:11:17 +0200 |
commit | e8a124b64620ad38b45dbf77612c749a1bb34411 (patch) | |
tree | bc1acb13d9ce1d1707312cc6fc07a5044d3d25d3 /util/mtp-hotplug.c | |
parent | d416c27cc73d072574b65b5556b4e751c3221ce3 (diff) | |
download | libmtp-e8a124b64620ad38b45dbf77612c749a1bb34411.tar.gz |
mtp-hotplug: provide a default for mtp_probe_dir
Calling "mtp-hotplug -u" would use unitialized memory and print a garbage path.
Diffstat (limited to 'util/mtp-hotplug.c')
-rw-r--r-- | util/mtp-hotplug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/mtp-hotplug.c b/util/mtp-hotplug.c index 6768b94..b5bc6da 100644 --- a/util/mtp-hotplug.c +++ b/util/mtp-hotplug.c @@ -73,7 +73,7 @@ int main (int argc, char **argv) char *action = NULL; // To hold the action when specified by the user. uint16_t last_vendor = 0x0000U; - char mtp_probe_dir[256]; + char mtp_probe_dir[256] = "/usr/lib/udev/"; char *udev_group= NULL; char *udev_mode = NULL; |