projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix: preserve example files' timestamps when copying
[lttng-ust.git]
/
libringbuffer
/
shm.c
diff --git
a/libringbuffer/shm.c
b/libringbuffer/shm.c
index 995665ae16f4ee0b4836b3ffaf047bfb76ec3193..3bf648d253bd4f00ad8791b34cecb3d75e0c19d2 100644
(file)
--- a/
libringbuffer/shm.c
+++ b/
libringbuffer/shm.c
@@
-77,6
+77,8
@@
struct shm_object_table *shm_object_table_create(size_t max_nb_obj)
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;
}
This page took
0.024133 seconds
and
4
git commands to generate.