Carl Shapiro pushed to branch master at cmucl / cmucl
Commits:
-
0319c582
by Carl Shapiro at 2024-04-28T12:05:17-07:00
-
1b3171cd
by Carl Shapiro at 2024-07-25T07:12:17+00:00
1 changed file:
Changes:
... | ... | @@ -128,6 +128,10 @@ make_var(char *name, boolean perm) |
128 | 128 | name = buffer;
|
129 | 129 | }
|
130 | 130 | var->name = (char *) malloc(strlen(name) + 1);
|
131 | + if (var->name == NULL) {
|
|
132 | + perror("malloc");
|
|
133 | + exit(1);
|
|
134 | + }
|
|
131 | 135 | strcpy(var->name, name);
|
132 | 136 | var->clock = 0;
|
133 | 137 | var->permanent = perm;
|