summaryrefslogtreecommitdiff
path: root/extras
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2010-04-12 16:10:05 +0200
committerKay Sievers <kay.sievers@vrfy.org>2010-04-12 16:10:05 +0200
commit86dc9133f88e8690aa89ccb5a240ff915b1fb69f (patch)
tree89ba4588d9ca85a68500cc2428242222c021ce64 /extras
parent5539f624e18e948e4e3a1f0d9f5d25de9c8fd8b8 (diff)
usb-db: remove double '/'
Diffstat (limited to 'extras')
-rw-r--r--extras/usb-db/usb-db.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/extras/usb-db/usb-db.c b/extras/usb-db/usb-db.c
index db1f843c1a..fe563c2e75 100644
--- a/extras/usb-db/usb-db.c
+++ b/extras/usb-db/usb-db.c
@@ -1,5 +1,3 @@
-/*-*- linux-c -*-*/
-
/*
* Copyright (C) 2009 Lennart Poettering <lennart@poettering.net>
*
@@ -223,7 +221,7 @@ int main(int argc, char*argv[]) {
if (!(udev = udev_new()))
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");
goto finish;
}