From be0c23efcb902891e91bed42ab2ac27a6f1460cb Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Tue, 23 Sep 2014 20:53:21 +0200 Subject: [PATCH] Bug 735985 - [PATCH] Fix missing unchecked return value in src/dot.cpp --- src/dot.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/dot.cpp b/src/dot.cpp index b62a53651fc..55e34df8c0e 100644 --- a/src/dot.cpp +++ b/src/dot.cpp @@ -1093,7 +1093,11 @@ bool DotFilePatcher::run() Map *map = m_maps.at(mapId); //printf("patching FIG %d in file %s with contents of %s\n", // mapId,m_patchFile.data(),map->mapFile.data()); - writeVecGfxFigure(t,map->label,map->mapFile); + if (!writeVecGfxFigure(t,map->label,map->mapFile)) + { + err("problem writing Gfx %d figure!\n",t); + return FALSE; + } } else // error invalid map id! {