small changes

This commit is contained in:
Vítor Santos Costa
2015-08-18 15:08:52 -05:00
parent f41a8c19ef
commit 880a9989c3
12 changed files with 102 additions and 47 deletions

View File

@@ -491,8 +491,9 @@ doformat(volatile Term otail, volatile Term oargs, int sno USES_REGS)
ptr[1] = '\0';
{
char *tmp2;
if (!(tmp2 = Yap_AllocCodeSpace(repeats+10)))
if (!(tmp2 = Yap_AllocCodeSpace(repeats+10))) {
goto do_type_int_error;
}
#if HAVE_SNPRINTF
snprintf (tmp2, repeats+10, tmp1, fl);
#else
@@ -545,6 +546,7 @@ doformat(volatile Term otail, volatile Term oargs, int sno USES_REGS)
tmpbase = NULL;
} else {
tmpbase = res;
goto do_type_int_error;
}
}