Mercurial > hg > octave-nkf
changeset 439:be9fcedb1715
[project @ 1994-05-26 01:03:02 by jwe]
author | jwe |
---|---|
date | Thu, 26 May 1994 01:06:01 +0000 |
parents | c9f49cb62fb5 |
children | e27d10f2e573 |
files | src/error.cc |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/error.cc +++ b/src/error.cc @@ -89,12 +89,13 @@ va_start (args, fmt); int len; - if (fmt && fmt[(len = strlen (fmt)) - 1] == '\n') + if (fmt && *fmt && fmt[(len = strlen (fmt)) - 1] == '\n') { error_state = -2; char *tmp_fmt = strsave (fmt); tmp_fmt[len - 1] = '\0'; verror ("error", tmp_fmt, args); + delete [] tmp_fmt; } else verror ("error", fmt, args);