[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH (speechd) 4/4] Restructure logging_init to eliminate multiple ret
From: |
Luke Yelavich |
Subject: |
[PATCH (speechd) 4/4] Restructure logging_init to eliminate multiple returns. |
Date: |
Wed, 24 Feb 2010 15:37:41 +1100 |
On Sat, Feb 20, 2010 at 02:50:12AM EST, Christopher Brannon wrote:
> When I "fixed" the memory leak in logging_init, I forgot that the function
> had multiple return statements. This patch eliminates them by restructuring
> the code. Now, logging_init only returns at one point.
>
> If the requested logfile could not be opened, the previous version would
> incorrectly report that it was logging to the given file. Fixed.
Applied, thanks.
Luke