Release calc version 2.11.0t3

This commit is contained in:
Landon Curt Noll
1999-09-28 02:19:47 -07:00
parent 4b98d5ff0e
commit 1ce630ac19
18 changed files with 267 additions and 250 deletions

10
hash.c
View File

@@ -147,13 +147,13 @@ hash_free(HASH *state)
HASH *
hash_copy(HASH *state)
{
HASH *new; /* copy of state */
HASH *hnew; /* copy of state */
/*
* malloc new state
*/
new = (HASH *)malloc(sizeof(HASH));
if (new == NULL) {
hnew = (HASH *)malloc(sizeof(HASH));
if (hnew == NULL) {
math_error("hash_init: cannot malloc HASH");
/*NOTREACHED*/
}
@@ -161,8 +161,8 @@ hash_copy(HASH *state)
/*
* duplicate state
*/
memcpy((void *)new, (void *)state, sizeof(HASH));
return new;
memcpy((void *)hnew, (void *)state, sizeof(HASH));
return hnew;
}