summary refs log tree commit diff stats
path: root/lib/pure/strutils.nim
diff options
context:
space:
mode:
authorrumpf_a@web.de <>2010-03-07 23:17:37 +0100
committerrumpf_a@web.de <>2010-03-07 23:17:37 +0100
commit1536415146a84f0057b47e6d32ec7f108a6df7dc (patch)
treedbc99b9335a62ba4b5cff0c41ae7ea444412bc12 /lib/pure/strutils.nim
parentf311acc589b86e341d663f7a06f269d0d355c5f7 (diff)
downloadNim-1536415146a84f0057b47e6d32ec7f108a6df7dc.tar.gz
added missing library files
Diffstat (limited to 'lib/pure/strutils.nim')
-rwxr-xr-xlib/pure/strutils.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pure/strutils.nim b/lib/pure/strutils.nim
index 724d00ee9..abca79933 100755
--- a/lib/pure/strutils.nim
+++ b/lib/pure/strutils.nim
@@ -444,7 +444,8 @@ proc addf(s: var string, formatstr: string, a: openarray[string]) =
       case formatstr[i+1] # again we use the fact that strings
                           # are zero-terminated here
       of '#':
-        add s, a[num]
+        if not isNil(a[num]): 
+          add s, a[num]
         inc i, 2
         inc num
       of '$':