From: leepei Date: Sat, 4 Apr 2015 21:58:42 +0000 (+0800) Subject: Make the indention of set_locale consistent with the group convention X-Git-Tag: v200~2^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=816e2cbfcf5bcb0d2e71d606d554f4addfbd0678;p=liblinear Make the indention of set_locale consistent with the group convention --- 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");