midori_view_save_source needs to handle data == NULL
Fixes: https://bugs.launchpad.net/midori/+bug/957674
This commit is contained in:
parent
ee8824b93b
commit
a3d8a5aa94
1 changed files with 1 additions and 1 deletions
|
@ -5232,7 +5232,7 @@ midori_view_save_source (MidoriView* view,
|
|||
{
|
||||
if ((fp = fdopen (fd, "w")))
|
||||
{
|
||||
ret = fwrite (data->str, 1, data->len, fp);
|
||||
ret = fwrite (data ? data->str : "", 1, data ? data->len : 0, fp);
|
||||
fclose (fp);
|
||||
if ((ret - data->len) != 0)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue