Changeset 2729

Show
Ignore:
Timestamp:
05/05/05 17:27:49 (4 years ago)
Author:
autrijus
svk:copy_cache_prev:
4271
Message:

* fix yaml segfault on all-whitespace input strings

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Prim.hs

    r2725 r2729  
    419419op1EvalYaml cv = do 
    420420    str     <- fromVal cv 
     421    if all isSpace str then return undef else do 
    421422    yaml    <- liftIO $ parseYaml (encodeUTF8 str) 
    422423    fromYaml yaml