diff --git a/trunk/src/or/config.c b/trunk/src/or/config.c index 36eed86536..a5da0166b8 100644 --- a/trunk/src/or/config.c +++ b/trunk/src/or/config.c @@ -292,7 +292,8 @@ int getconfig(int argc, char **argv, or_options_t *options) { argc = backup_argc; /* record some previous values, so we can fail if they change */ - previous_pidfile = tor_strdup(options->PidFile); + if(options->PidFile) + previous_pidfile = tor_strdup(options->PidFile); previous_runasdaemon = options->RunAsDaemon; free_options(options); }