chiark
/
gitweb
/
~mdw
/
runlisp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
164c206
)
lib.c: (set_progname): Set program name even if `argv[0]' has no `/'.
author
Mark Wooding
<mdw@distorted.org.uk>
Fri, 14 May 2021 20:46:24 +0000
(21:46 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sat, 15 May 2021 13:59:00 +0000
(14:59 +0100)
At least it was `???' and not a null pointer, but it's still rather
poor.
lib.c
patch
|
blob
|
blame
|
history
diff --git
a/lib.c
b/lib.c
index 251d932e5fb6dbdeccf70e792e48aeca261ce0bc..eb2a586666eb2f58bbcc324ddb305716194531d5 100644
(file)
--- a/
lib.c
+++ b/
lib.c
@@
-51,7
+51,7
@@
void set_progname(const char *prog)
const char *p;
p = strrchr(prog, '/');
- progname = p ? p + 1 : prog
name
;
+ progname = p ? p + 1 : prog;
}
/* Report an error or warning in Unix style, given a captured argument