Oops, stray parenthesis when PATH_MAX isn't defined
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@586 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
90d307413b
commit
60c65424c3
2
files.c
2
files.c
|
@ -1368,7 +1368,7 @@ char *do_browse_from(char *inpath)
|
||||||
#ifdef PATH_MAX
|
#ifdef PATH_MAX
|
||||||
char *from = getcwd(NULL, PATH_MAX+1);
|
char *from = getcwd(NULL, PATH_MAX+1);
|
||||||
#else
|
#else
|
||||||
char *from = getcwd(NULL, 0));
|
char *from = getcwd(NULL, 0);
|
||||||
#endif /* PATH_MAX */
|
#endif /* PATH_MAX */
|
||||||
return do_browser(from ? from : "./");
|
return do_browser(from ? from : "./");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue