summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2010-07-28 23:27:11 +0400
committerCyrill Gorcunov <gorcunov@gmail.com>2010-07-29 19:01:34 +0400
commit16cbf9b5c24437e83362da988e5a49fd458ae6c6 (patch)
tree41e432d5ef215adcaeb31a85f0aea1badff681cf
parentfd90ef56aeb83d445b62f21fbaba802037424775 (diff)
downloadnasm-16cbf9b5c24437e83362da988e5a49fd458ae6c6.tar.gz
nasmlib.c: fix typo in nasm_init_malloc_error
Typo happened in 9b603082 so -DLOGALLOC gets broken. Not that important since this is a developer oriented feature but should be fixed anyway. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
-rw-r--r--nasmlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nasmlib.c b/nasmlib.c
index 460186e6..d70f6c24 100644
--- a/nasmlib.c
+++ b/nasmlib.c
@@ -93,7 +93,7 @@ void nasm_init_malloc_error(void)
if (logfp) {
setvbuf(logfp, NULL, _IOLBF, BUFSIZ);
} else {
- nasm_error(ERR_NONFATAL | ERR_NOFILE, "Unable to open %s", file);
+ nasm_error(ERR_NONFATAL | ERR_NOFILE, "Unable to open %s", logfp);
logfp = stderr;
}
fprintf(logfp, "null pointer is %p\n", NULL);