Il 02/08/2012 12:17, Stefan Hajnoczi ha scritto: >> > Main purpose of it is to set ret to err_v when memory is not enough, >> > I am not sure how to make this happens for every strdup. > Eric pointed out that we cannot use g_strdup() because it aborts on > memory allocation failure, so please ignore my suggestion to use that.
I wouldn't. What good it is to avoid g_strdup, if the block layer will later use g_malloc anyway? Paolo