mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-11-25 23:45:58 +01:00
Fix segfault in config_parse_file
configfile is a `char *`. %s needs a `char *`, so we shouldn't dereference the pointer here. Closes: https://github.com/emersion/xdg-desktop-portal-wlr/issues/91
This commit is contained in:
parent
07154bb1e3
commit
d3ac33a0aa
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ static char *config_path(char *prefix, char *filename) {
|
|||
static void config_parse_file(const char *configfile, struct xdpw_config *config) {
|
||||
dictionary *d = NULL;
|
||||
if (configfile) {
|
||||
logprint(INFO, "config: using config file %s", *configfile);
|
||||
logprint(INFO, "config: using config file %s", configfile);
|
||||
d = iniparser_load(configfile);
|
||||
} else {
|
||||
logprint(INFO, "config: no config file found");
|
||||
|
|
Loading…
Reference in a new issue