Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/libexec/ftpd trivial simplification



details:   https://anonhg.NetBSD.org/src/rev/3c68856439d8
branches:  trunk
changeset: 479793:3c68856439d8
user:      lukem <lukem%NetBSD.org@localhost>
date:      Tue Dec 21 12:52:18 1999 +0000

description:
trivial simplification

diffstat:

 libexec/ftpd/ftpcmd.y |  11 ++++-------
 1 files changed, 4 insertions(+), 7 deletions(-)

diffs (32 lines):

diff -r 008f51fe4c1e -r 3c68856439d8 libexec/ftpd/ftpcmd.y
--- a/libexec/ftpd/ftpcmd.y     Tue Dec 21 12:34:11 1999 +0000
+++ b/libexec/ftpd/ftpcmd.y     Tue Dec 21 12:52:18 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ftpcmd.y,v 1.42 1999/12/18 05:51:34 lukem Exp $        */
+/*     $NetBSD: ftpcmd.y,v 1.43 1999/12/21 12:52:18 lukem Exp $        */
 
 /*-
  * Copyright (c) 1997-1999 The NetBSD Foundation, Inc.
@@ -83,7 +83,7 @@
 #if 0
 static char sccsid[] = "@(#)ftpcmd.y   8.3 (Berkeley) 4/6/94";
 #else
-__RCSID("$NetBSD: ftpcmd.y,v 1.42 1999/12/18 05:51:34 lukem Exp $");
+__RCSID("$NetBSD: ftpcmd.y,v 1.43 1999/12/21 12:52:18 lukem Exp $");
 #endif
 #endif /* not lint */
 
@@ -2003,11 +2003,8 @@
                return;
        }
 
-       if (ep != NULL && *ep != '\0') {
-               if (c->options != NULL)
-                       free(c->options);
-               c->options = xstrdup(ep);
-       }
+       if (ep != NULL && *ep != '\0')
+               REASSIGN(c->options, xstrdup(ep));
        if (c->options != NULL)
                reply(200, "Options for %s are '%s'.", c->name, c->options);
        else



Home | Main Index | Thread Index | Old Index