pkgsrc/games/abuse/patches/patch-al

14 lines
428 B
Text
Raw Normal View History

2002-07-16 16:26:20 +02:00
$NetBSD: patch-al,v 1.1 2002/07/16 14:26:21 agc Exp $
--- abuse/src/view.c 2002/07/16 14:15:54 1.1
+++ abuse/src/view.c 2002/07/16 14:16:23
@@ -179,7 +179,7 @@
#else
char *get_login()
-{ if (cur_user_name[0]) return cur_user_name; else return (getlogin() ? getlogin() : "unknown"); }
+{ char *unknown = "unknown"; if (cur_user_name[0]) return cur_user_name; else return (getlogin() ? getlogin() : unknown); }
#endif