Re: [PATCH v12 4/7] send-pack: extension for client-side status report

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jiang Xin <worldhello.net@xxxxxxxxx> writes:

> +		if (msg)
> +			hint->remote_status = xstrdup(msg);
> +		else if (extended_status)
> +			hint->remote_status = xstrdup(extended_status);

contrib/coccinelle/xstrdup_or_null.cocci suggests to rewrite the
above like so:

		if (msg)
			hint->remote_status = xstrdup(msg);
		else
			hint->remote_status = xstrdup_or_null(extended_status);

I'll queue a fix-up patch to keep 'pu' passing the test suite for now.



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux