mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-25 21:46:57 +03:00
Avoid crash if pargc is NULL. This might happen, for example, when launching NetSurf
from Workbench under AmigaOS :) svn path=/trunk/netsurf/; revision=10214
This commit is contained in:
parent
07537e5240
commit
9b9c26b569
@ -80,7 +80,8 @@ nserror netsurf_init(int *pargc,
|
||||
stdout = stderr;
|
||||
#endif
|
||||
|
||||
if (((*pargc) > 1) &&
|
||||
if ((pargc) &&
|
||||
((*pargc) > 1) &&
|
||||
((*pargv)[1][0] == '-') &&
|
||||
((*pargv)[1][1] == 'v') &&
|
||||
((*pargv)[1][2] == 0)) {
|
||||
|
Loading…
Reference in New Issue
Block a user