[Tile-serving] [osm2pgsql] Cleanup based on the output of LLVM's static analyzer (#299)
Sarah Hoffmann
notifications at github.com
Sat Feb 21 18:43:18 UTC 2015
> int nodec;
>
> + assert(ndc > 0 && "no nodes to proccess");
Then fix it correctly by discarding ways with 0 nodes. Before your change the malloc(0)'d pointer was never dereferenced, so things happened to work fine.
---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/299/files#r25124430
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20150221/34e75769/attachment.html>
More information about the Tile-serving
mailing list