summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/libutil.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2009-12-17 11:29:22 +0100
committerAdam Borowski <kilobyte@angband.pl>2009-12-17 11:29:22 +0100
commitb7d134a9c8a634cdab2cd060e561304e1d12979d (patch)
tree6111047f1a143803d066df7ae8c775ed65109e8a /crawl-ref/source/libutil.h
parent51f76411e22a18ce0cb3fdf001bcb5e558532124 (diff)
downloadcrawl-ref-b7d134a9c8a634cdab2cd060e561304e1d12979d.tar.gz
crawl-ref-b7d134a9c8a634cdab2cd060e561304e1d12979d.zip
In make_sprintf(), don't call sprintf() twice if the first call succeeds.
This spares us the second call, a malloc() and free() in 99.999% cases.
Diffstat (limited to 'crawl-ref/source/libutil.h')
0 files changed, 0 insertions, 0 deletions