Skip to content

Commit

Permalink
Make sure we never end up with a a null string in a Parameter object.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Jul 16, 2010
1 parent c513fbd commit 13dc51c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/builtins/Signature.pir
Expand Up @@ -72,6 +72,11 @@ Returns a C<List> of C<Parameter> descriptors.
parcel = flags & SIG_ELEM_IS_PARCEL
capture = flags & SIG_ELEM_IS_CAPTURE

# Ensure name isn't null.
unless null name goto name_ok
name = ''
name_ok:

# Make sure constraints is non-null.
unless null cons_type goto have_cons
cons_type = get_hll_global ['Bool'], 'True'
Expand Down

0 comments on commit 13dc51c

Please sign in to comment.