From: kay.sievers@vrfy.org Date: Sun, 12 Dec 2004 01:54:55 +0000 (+0100) Subject: [PATCH] remove double initialization X-Git-Tag: 049~8 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=8544c9ad4febef602d640905a70c350364f98967 [PATCH] remove double initialization --- diff --git a/udev.c b/udev.c index b1ba1435e..4d25ed267 100644 --- a/udev.c +++ b/udev.c @@ -101,11 +101,11 @@ int main(int argc, char *argv[], char *envp[]) struct sysfs_device *devices_dev; struct udevice udev; char path[SYSFS_PATH_MAX]; - int retval = -EINVAL; const char *error; - const char *action = getenv("ACTION"); - const char *devpath = getenv("DEVPATH"); - const char *subsystem = argv[1]; + const char *action; + const char *devpath; + const char *subsystem; + int retval = -EINVAL; if (argc == 2 && strcmp(argv[1], "-V") == 0) { printf("%s\n", UDEV_VERSION);