table = zmalloc(sizeof(struct shm_object_table) +
max_nb_obj * sizeof(table->objects[0]));
+ if (!table)
+ return NULL;
table->size = max_nb_obj;
return table;
}
* Using mktemp filename with O_CREAT | O_EXCL open
* flags.
*/
- mktemp(tmp_name);
+ (void) mktemp(tmp_name);
if (tmp_name[0] == '\0') {
PERROR("mktemp");
goto error_shm_open;