summaryrefslogtreecommitdiff
path: root/nm.c
diff options
context:
space:
mode:
Diffstat (limited to 'nm.c')
-rw-r--r--nm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/nm.c b/nm.c
index 47a8215..75949b1 100644
--- a/nm.c
+++ b/nm.c
@@ -27,6 +27,8 @@ int main(void)
{
signal(SIGINT, handlecc);
char *USER = getenv("USER");
+ if (!USER)
+ USER = "god";
while (true) {
char prompt[strlen(USER) + strlen("$ ") + 1];