diff options
author | wlestes <wlestes> | 2012-02-03 22:32:35 +0000 |
---|---|---|
committer | wlestes <wlestes> | 2012-02-03 22:32:35 +0000 |
commit | 0ece5566df239cfc380d927efd0a94fc71dd9f3e (patch) | |
tree | 66177f978d35a2e8e4da78933af8f315e8f18b09 /main.c | |
parent | 48658c017179243b859cc3ddb01a9e0d58f8e451 (diff) | |
download | flex-0ece5566df239cfc380d927efd0a94fc71dd9f3e.tar.gz |
more better error messages; more better memory handling
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -455,6 +455,8 @@ void check_options () size_t strsz; str = (char*)flex_alloc(strsz = strlen(fmt) + strlen(scname[i]) + (int)(1 + log10(i)) + 2); + if (!str) + flexfatal(_("allocation of macro definition failed")); snprintf(str, strsz, fmt, scname[i], i - 1); buf_strappend(&tmpbuf, str); free(str); |