Commit 3a6f26f8 authored by Ben Boeckel's avatar Ben Boeckel

XdmfGridController: always initialize the return value

parent b459efb3
......@@ -159,7 +159,7 @@ XdmfGridControllerRead(XDMFGRIDCONTROLLER * controller)
{
XdmfGridController referenceController = *(XdmfGridController *)(controller);
shared_ptr<XdmfGrid> returnGrid = referenceController.read();
XDMFGRID * returnPointer;
XDMFGRID * returnPointer = NULL;
if (shared_ptr<XdmfCurvilinearGrid> curvilinearGrid =
shared_dynamic_cast<XdmfCurvilinearGrid>(returnGrid))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment