Fix program name fallback (cut&paste mistake :)
This commit is contained in:
parent
31584b0a4d
commit
d6d2bb531e
|
@ -36,7 +36,7 @@ int main(int argc, char *argv[]) {
|
|||
|
||||
/* init section */
|
||||
prog=argv[0];
|
||||
if(!prog)prog="blink";
|
||||
if(!prog)prog="lpcfix";
|
||||
if(strrchr(prog,'/')){
|
||||
prog=strrchr(argv[0],'/');
|
||||
prog++;
|
||||
|
|
Loading…
Reference in New Issue