summaryrefslogtreecommitdiff
path: root/src/include/cctk_Types.h
diff options
context:
space:
mode:
authorrhaas <rhaas@17b73243-c579-4c4c-a9d2-2d5706c11dac>2014-02-13 02:11:56 +0000
committerrhaas <rhaas@17b73243-c579-4c4c-a9d2-2d5706c11dac>2014-02-13 02:11:56 +0000
commite2c5b6aac587c70b8849be02bf5a5a8879fcb641 (patch)
treed1e6c76a8427988a62a36ce17dac0d74cec13627 /src/include/cctk_Types.h
parent658d2f98437815782691571f373b42321ffc9226 (diff)
disallow empty value strings when setting numbers in CCTK_ParameterSet
Before this patch due to the way strtol and strtod work one can do CCTK_ParameterSet("cctk_itlast", "Cactus", "") which returns 0 (all is fine) and sets cctk_itlast to 0 (rather than failing with -6 "invalid string"). This cannot happen from inside of parfiles since the parser disallows it. It can happen when using the Trigger thorn. git-svn-id: http://svn.cactuscode.org/flesh/trunk@5083 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/include/cctk_Types.h')
0 files changed, 0 insertions, 0 deletions