mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-17 17:52:43 +03:00
Check correct variable for NULL.
This commit is contained in:
parent
d0e67542f5
commit
4ea90d2dca
@ -927,8 +927,8 @@ static void gui_init2(int argc, char** argv)
|
|||||||
/* URL files */
|
/* URL files */
|
||||||
else if (strcasecmp(argv[1], "-urlf") == 0) {
|
else if (strcasecmp(argv[1], "-urlf") == 0) {
|
||||||
char *urlf = ro_gui_url_file_parse(argv[2]);
|
char *urlf = ro_gui_url_file_parse(argv[2]);
|
||||||
if (!url) {
|
if (!urlf) {
|
||||||
LOG(("malloc failed"));
|
LOG(("allocation failed"));
|
||||||
die("Insufficient memory for URL");
|
die("Insufficient memory for URL");
|
||||||
}
|
}
|
||||||
ret = nsurl_create(urlf, &url);
|
ret = nsurl_create(urlf, &url);
|
||||||
|
Loading…
Reference in New Issue
Block a user