1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-31 07:51:08 +03:00

usb-db: remove double '/'

This commit is contained in:
Kay Sievers 2010-04-12 16:10:05 +02:00
parent 5539f624e1
commit 86dc9133f8

View File

@ -1,5 +1,3 @@
/*-*- linux-c -*-*/
/* /*
* Copyright (C) 2009 Lennart Poettering <lennart@poettering.net> * Copyright (C) 2009 Lennart Poettering <lennart@poettering.net>
* *
@ -223,7 +221,7 @@ int main(int argc, char*argv[]) {
if (!(udev = udev_new())) if (!(udev = udev_new()))
goto finish; goto finish;
if (asprintf(&sp, "%s/%s", udev_get_sys_path(udev), argv[1]) < 0) { if (asprintf(&sp, "%s%s", udev_get_sys_path(udev), argv[1]) < 0) {
fprintf(stderr, "Failed to allocate sysfs path.\n"); fprintf(stderr, "Failed to allocate sysfs path.\n");
goto finish; goto finish;
} }