[CRIU] [PATCH] crtools: Make sure the option has been strdup'ed

Cyrill Gorcunov gorcunov at gmail.com
Wed Oct 9 08:41:14 PDT 2013


On Wed, Oct 09, 2013 at 07:27:12PM +0400, Pavel Emelyanov wrote:
> >  		case 'o':
> > -			opts.output = strdup(optarg);
> > +			opts.output = xstrdup(optarg);
> 
> Do we need to strdup it at all?

Heh, seems like indeed it's completely redundant. Letme recheck...

	Cyrill


More information about the CRIU mailing list