Thread (2 messages) 2 messages, 2 authors, 2012-10-25

Re: [PATCH] [btrfs-progs] Modify parse_size to remove the strdup/free

From: David Sterba <hidden>
Date: 2012-10-25 16:47:11

On Tue, Oct 23, 2012 at 05:11:27PM +0800, Rock Lee wrote:
Since the function atoi(l) series stop at the first non numeric chars,

So there's no need to strdup the original s and modify s[len-1] = '\0'
This change is superseded and contained in Goffredos patches which I
prefer for inclusion as they do more extensive updates.

thanks anyway,
david
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help