diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2007-11-06 06:57:00 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2007-11-06 06:57:00 +0000 |
commit | e9fb25b1ec50cf5157f9c49417c5bf9266b5fafc (patch) | |
tree | fe9291ae68bc455ec1627fbc65cc7d269b0cb446 /usr.bin/top/top.c | |
parent | 3b0f0d50aee356252428dc2be18048dcf85a70f4 (diff) |
prevent segv on wrong sort name; Mark Lumsden.
Diffstat (limited to 'usr.bin/top/top.c')
-rw-r--r-- | usr.bin/top/top.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/top/top.c b/usr.bin/top/top.c index b096b798783..4c0599e66fb 100644 --- a/usr.bin/top/top.c +++ b/usr.bin/top/top.c @@ -1,4 +1,4 @@ -/* $OpenBSD: top.c,v 1.61 2007/11/04 18:51:48 otto Exp $ */ +/* $OpenBSD: top.c,v 1.62 2007/11/06 06:56:59 otto Exp $ */ /* * Top users/processes display for Unix @@ -328,6 +328,7 @@ main(int argc, char *argv[]) strlcat(msg, *pp++, sizeof(msg)); } new_message(MT_delayed, msg); + order_index = 0; } } |