Displaying 3 results from an estimated 3 matches for "0c2f545".
Did you mean:
028545
2016 Mar 07
0
Re: [PATCH v2] Use less stack.
...152,7 +152,13 @@ int
> do_download (const char *filename)
> {
> int fd, r, is_dev;
> - char buf[GUESTFS_MAX_CHUNK_SIZE];
> + CLEANUP_FREE char *buf;
Missing "= NULL" here.
> diff --git a/erlang/erl-guestfs-proto.c b/erlang/erl-guestfs-proto.c
> index 658a0ef..0c2f545 100644
> --- a/erlang/erl-guestfs-proto.c
> +++ b/erlang/erl-guestfs-proto.c
> @@ -201,11 +201,14 @@ ETERM *
> make_string_list (char **r)
> {
> size_t i, size;
> + ETERM **t;
>
> for (size = 0; r[size] != NULL; ++size)
> ;
>
> - ETERM *t[size]...
2016 Mar 07
2
[PATCH v2] Use less stack.
...(sizeof (pthread_t) * nr_threads);
+ if (thread_data == NULL || threads == NULL)
+ error (EXIT_FAILURE, errno, "malloc");
for (i = 0; i < nr_threads; ++i) {
thread_data[i].thread_num = i;
diff --git a/erlang/erl-guestfs-proto.c b/erlang/erl-guestfs-proto.c
index 658a0ef..0c2f545 100644
--- a/erlang/erl-guestfs-proto.c
+++ b/erlang/erl-guestfs-proto.c
@@ -201,11 +201,14 @@ ETERM *
make_string_list (char **r)
{
size_t i, size;
+ ETERM **t;
for (size = 0; r[size] != NULL; ++size)
;
- ETERM *t[size];
+ t = malloc (sizeof (ETERM *) * size);
+ if (t == NULL)...
2016 Mar 06
8
[PATCH 0/5] Use less stack.
Various changes/fixes to use smaller stack frames.
Rich.