summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2014-01-08 20:52:42 +0000
committertavmjong-free <tavmjong@free.fr>2014-01-08 20:52:42 +0000
commit0ae7da361c98ca8a2119a933c543a76970f2dbef (patch)
treeaeec33bc6cd462e14b554f2902e3305bc998f56e /src
parentwarning cleanup (diff)
downloadinkscape-0ae7da361c98ca8a2119a933c543a76970f2dbef.tar.gz
inkscape-0ae7da361c98ca8a2119a933c543a76970f2dbef.zip
Prevent infinite loop with bad input.
(bzr r12893)
Diffstat (limited to 'src')
-rw-r--r--src/helper-fns.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/helper-fns.h b/src/helper-fns.h
index 95de4a1b0..699fbbe11 100644
--- a/src/helper-fns.h
+++ b/src/helper-fns.h
@@ -107,6 +107,7 @@ inline std::vector<gdouble> helperfns_read_vector(const gchar* value){
// We could leave this out, too. If strtod can't convert
// anything, it will return zero.
ret = 0;
+ break;
}
v.push_back(ret);