X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Fmain.c;h=e09b6ffcce32bd06389d91da6276f24c1e009007;hp=f1986ed68d0b7e4d00f81b956e2abbb263b79d7a;hb=b5a2fd5ca2cd00b564d829c352d825902fba13a0;hpb=53aeb75a17f1118db121088269b38a097283126f diff --git a/pppd/main.c b/pppd/main.c index f1986ed..e09b6ff 100644 --- a/pppd/main.c +++ b/pppd/main.c @@ -257,7 +257,6 @@ static void cleanup_db __P((void)); static void handle_events __P((void)); void print_link_stats __P((void)); -extern char *ttyname __P((int)); extern char *getlogin __P((void)); int main __P((int, char *[])); @@ -1752,7 +1751,7 @@ update_script_environment() script_env[i] = newstring; else add_script_env(i, newstring); - } else { + } else if (p != NULL) { remove_script_env(i); } }