diff options
-rw-r--r-- | lib/igt_device_scan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/igt_device_scan.c b/lib/igt_device_scan.c index a1cee7a4..b51275e4 100644 --- a/lib/igt_device_scan.c +++ b/lib/igt_device_scan.c @@ -337,6 +337,7 @@ static void igt_device_add_prop(struct igt_device *dev, static void igt_device_add_attr(struct igt_device *dev, const char *key, const char *value) { + char linkto[PATH_MAX]; const char *v = value; if (!key) @@ -348,7 +349,6 @@ static void igt_device_add_attr(struct igt_device *dev, if (!v) { struct stat st; char path[PATH_MAX]; - char linkto[PATH_MAX]; int len; snprintf(path, sizeof(path), "%s/%s", dev->syspath, key); |