mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-28 06:49:41 +03:00
Fix the other half of this NULL dereference issue
svn path=/trunk/netsurf/; revision=9695
This commit is contained in:
parent
aaa14e7672
commit
8685cfb3b7
@ -720,7 +720,8 @@ void urldb_write_paths(const struct path_data *parent, const char *host,
|
||||
|
||||
/* Now, find next node to process. */
|
||||
while (p != parent) {
|
||||
int seglen = strlen(p->segment);
|
||||
int seglen = p->segment != NULL
|
||||
? strlen(p->segment) : 0;
|
||||
|
||||
/* Remove our segment from the path */
|
||||
*path_used -= seglen;
|
||||
|
Loading…
Reference in New Issue
Block a user