]> granicus.if.org Git - liblinear/commitdiff
Make the indention of set_locale consistent with the group convention
authorleepei <leepei@marcie.(none)>
Sat, 4 Apr 2015 21:58:42 +0000 (05:58 +0800)
committerleepei <leepei@marcie.(none)>
Sat, 4 Apr 2015 21:58:42 +0000 (05:58 +0800)
linear.cpp

index c9a97b82a178ecdb05bdbef9c66ffa8bcc6be032..230948c31f42db595e3c56e8408899b7d5c09adb 100644 (file)
@@ -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");