diff options
author | Adam Borowski <kilobyte@angband.pl> | 2009-12-17 11:29:22 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2009-12-17 11:29:22 +0100 |
commit | b7d134a9c8a634cdab2cd060e561304e1d12979d (patch) | |
tree | 6111047f1a143803d066df7ae8c775ed65109e8a /crawl-ref/source/libutil.h | |
parent | 51f76411e22a18ce0cb3fdf001bcb5e558532124 (diff) | |
download | crawl-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