summaryrefslogtreecommitdiff
path: root/udev.c
diff options
context:
space:
mode:
Diffstat (limited to 'udev.c')
-rw-r--r--udev.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/udev.c b/udev.c
index d98a017396..b4b08b335b 100644
--- a/udev.c
+++ b/udev.c
@@ -106,8 +106,6 @@ static int subsystem_without_dev(const char *subsystem)
int main(int argc, char *argv[], char *envp[])
{
- main_argv = argv;
- main_envp = envp;
struct sigaction act;
char *action;
char *devpath = "";
@@ -121,6 +119,9 @@ int main(int argc, char *argv[], char *envp[])
dbg("version %s", UDEV_VERSION);
+ main_argv = argv;
+ main_envp = envp;
+
init_logging("udev");
udev_init_config();