From 537179902a34eb948af1672cbaf9ca469a9f442f Mon Sep 17 00:00:00 2001 From: Marrub Date: Thu, 6 Aug 2015 09:20:53 -0400 Subject: [PATCH] oh that's why --- src/lt.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/lt.c b/src/lt.c index 432ae96..157752d 100644 --- a/src/lt.c +++ b/src/lt.c @@ -424,7 +424,16 @@ LT_BOOL LT_Assert(LT_BOOL assertion, const char *fmt, ...) if(assertion) { char *asBuffer = LT_Alloc(512); - int place = (int)ftell(parseFile); + int place; + + if(parseFile != NULL) + { + place = (int)ftell(parseFile); + } + else + { + place = -1; + } va_list va; assertError = LT_TRUE;