mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-24 23:39:51 +03:00
[project @ 2003-12-30 17:52:26 by jmb]
Add some error handling svn path=/import/netsurf/; revision=473
This commit is contained in:
parent
25ec7fcc34
commit
343038c6b4
@ -179,10 +179,18 @@ void about_create(void) {
|
||||
LOG(("var: %s", var));
|
||||
sprintf(buf, "%s.", val);
|
||||
LOG(("buf: %s", buf));
|
||||
xosfscontrol_canonicalise_path(var, 0, 0, buf, 0, &pneeded);
|
||||
e = xosfscontrol_canonicalise_path(var, 0, 0, buf, 0, &pneeded);
|
||||
if (e) {
|
||||
LOG(("%s", e->errmess));
|
||||
return;
|
||||
}
|
||||
fname = xcalloc((unsigned int)(10-pneeded), sizeof(char));
|
||||
xosfscontrol_canonicalise_path(var, fname, 0, buf,
|
||||
e = xosfscontrol_canonicalise_path(var, fname, 0, buf,
|
||||
(10-pneeded), 0);
|
||||
if (e) {
|
||||
LOG(("%s", e->errmess));
|
||||
return;
|
||||
}
|
||||
LOG(("fname: %s", fname));
|
||||
furl = xcalloc(strlen(fname) + 20, sizeof(char));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user