mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[config] const slash
This commit is contained in:
parent
e432fc8c91
commit
4748ae0281
@ -1265,7 +1265,7 @@ write_config_file(char *prefix, char *name,
|
||||
int prefixlen = strlen(prefix);
|
||||
int prefix_has_slash = (prefixlen && dir_sep(prefix[prefixlen - 1]));
|
||||
int name_has_slash = dir_sep(name[0]);
|
||||
char *slash = name_has_slash || prefix_has_slash ? "" : STRING_DIR_SEP;
|
||||
const char *slash = name_has_slash || prefix_has_slash ? "" : STRING_DIR_SEP;
|
||||
|
||||
if (!cfg_str) return -1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user