summaryrefslogtreecommitdiff
path: root/nm.c
diff options
context:
space:
mode:
authorczjstmax <jstmaxlol@disroot.org>2026-03-19 17:52:09 +0100
committerczjstmax <jstmaxlol@disroot.org>2026-03-19 17:52:09 +0100
commit34938a8148dfca66c4d74b1bab1c70f6ba855fb8 (patch)
tree70db50803e4fd5c3cdd186ea929396e148808279 /nm.c
parentd9b3d4f234b660d325a4d01479590bced47c9ec4 (diff)
updated readme
Signed-off-by: czjstmax <jstmaxlol@disroot.org>
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];