mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-24 21:16:50 +03:00
Fix return value check
svn path=/trunk/netsurf/; revision=3249
This commit is contained in:
parent
00af899230
commit
a27a1e425a
@ -82,10 +82,10 @@ void browser_window_create_iframes(struct browser_window *bw,
|
||||
window->margin_height = cur->margin_height;
|
||||
if (cur->name) {
|
||||
window->name = strdup(cur->name);
|
||||
if (!cur->name)
|
||||
if (!window->name)
|
||||
warn_user("NoMemory", 0);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/* linking */
|
||||
window->box = cur->box;
|
||||
window->parent = bw;
|
||||
@ -203,7 +203,7 @@ void browser_window_create_frameset(struct browser_window *bw,
|
||||
|
||||
/* gui window */
|
||||
window->window = gui_create_browser_window(window, bw);
|
||||
|
||||
|
||||
if (window->name)
|
||||
LOG(("Created frame '%s'", window->name));
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user