mirror of
https://github.com/coturn/coturn.git
synced 2025-10-24 12:31:00 +02:00
Merge pull request #466 from chanduthedev/null-check
added null check for second char
This commit is contained in:
commit
fbd79ed560
@ -786,7 +786,7 @@ void print_abs_file_name(const char *msg1, const char *msg2, const char *fn)
|
||||
if(fn[0]=='/') {
|
||||
STRCPY(absfn,fn);
|
||||
} else {
|
||||
if(fn[0]=='.' && fn[1]=='/')
|
||||
if(fn[0]=='.' && fn[1] && fn[1]=='/')
|
||||
fn+=2;
|
||||
if(!getcwd(absfn,sizeof(absfn)-1))
|
||||
absfn[0]=0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user