diff options
Diffstat (limited to 'src/runtime/string.c')
| -rw-r--r-- | src/runtime/string.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/runtime/string.c b/src/runtime/string.c index e708d0203d..001050beb4 100644 --- a/src/runtime/string.c +++ b/src/runtime/string.c @@ -12,6 +12,8 @@ findnull(byte *s) { int32 l; + if(s == nil) + return 0; for(l=0; s[l]!=0; l++) ; return l; |
