summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1997-11-18 19:38:27 +0000
committerbrian <brian@FreeBSD.org>1997-11-18 19:38:27 +0000
commit744d2dfbcccf46e0de52e30f1b7b84e0f04dfdab (patch)
tree346e4cd19929a05794196da3e84d6a3e5bc468fb /usr.sbin/ppp
parentf4b1f058021510e6f6aab166c1756480544128b0 (diff)
downloadFreeBSD-src-744d2dfbcccf46e0de52e30f1b7b84e0f04dfdab.zip
FreeBSD-src-744d2dfbcccf46e0de52e30f1b7b84e0f04dfdab.tar.gz
Allow zero args to "cvs log".
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r--usr.sbin/ppp/command.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/command.c b/usr.sbin/ppp/command.c
index 2548ba9..5b05036 100644
--- a/usr.sbin/ppp/command.c
+++ b/usr.sbin/ppp/command.c
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: command.c,v 1.102 1997/11/13 14:43:14 brian Exp $
+ * $Id: command.c,v 1.103 1997/11/18 00:19:28 brian Exp $
*
*/
#include <sys/param.h>
@@ -1013,7 +1013,7 @@ SetLogLevel(struct cmdtab const * list, int argc, char **argv)
void (*DiscardAll)(void);
res = 0;
- if (strcasecmp(argv[0], "local")) {
+ if (argc == 0 || strcasecmp(argv[0], "local")) {
Discard = LogDiscard;
Keep = LogKeep;
DiscardAll = LogDiscardAll;
OpenPOWER on IntegriCloud