From 816e2cbfcf5bcb0d2e71d606d554f4addfbd0678 Mon Sep 17 00:00:00 2001 From: leepei Date: Sun, 5 Apr 2015 05:58:42 +0800 Subject: [PATCH] Make the indention of set_locale consistent with the group convention --- linear.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/linear.cpp b/linear.cpp index c9a97b8..230948c 100644 --- a/linear.cpp +++ b/linear.cpp @@ -2593,7 +2593,8 @@ int save_model(const char *model_file_name, const struct model *model_) if(fp==NULL) return -1; char *old_locale = setlocale(LC_ALL, NULL); - if (old_locale) { + if (old_locale) + { old_locale = strdup(old_locale); } setlocale(LC_ALL, "C"); @@ -2651,7 +2652,8 @@ struct model *load_model(const char *model_file_name) model_->label = NULL; char *old_locale = setlocale(LC_ALL, NULL); - if (old_locale) { + if (old_locale) + { old_locale = strdup(old_locale); } setlocale(LC_ALL, "C"); -- 2.40.0