Refactor
authorNelson Ferreira <nelson.ferreira@ieee.org>
Wed, 14 Mar 2012 00:10:38 +0000 (20:10 -0400)
committerNelson Ferreira <nelson.ferreira@ieee.org>
Wed, 14 Mar 2012 00:10:38 +0000 (20:10 -0400)
commit689ade4250523c8e0e9b5cb30d7e9bbf566d2667
treeced3c62e94a068ecda65983161891c69878b1028
parentacb7fe4f9e6e8bbddb8e33e0d3c32581c96194e8
Refactor

* src/mule/file-coding.c (autodetect_real_coding_system): New
function to reduce indentention of scope. Also as soon as stream
read fails, it returns, thus solving one of the coverity issues.
Several scope reduction refactorings.

* src/mule/file-coding.c (determine_real_coding_system): Call the
new function.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
src/mule/file-coding.c