diff options
Diffstat (limited to 'loader')
-rw-r--r-- | loader/urls.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/loader/urls.c b/loader/urls.c index c59a2b918..2d0dd8822 100644 --- a/loader/urls.c +++ b/loader/urls.c @@ -271,9 +271,9 @@ int urlMainSetupPanel(struct iurlinfo * ui, urlprotocol protocol, buf[0] = '/'; buf[1] = '\0'; strcat (buf, dir); - } - - ui->prefix = strdup(dir); + ui->prefix = buf; + } else + ui->prefix = strdup(dir); /* Get rid of trailing /'s */ chptr = ui->prefix + strlen(ui->prefix) - 1; |