comparison src/rcfile.c @ 537:8d9992e2de56

save_options(): minor code simplification.
author zas_
date Thu, 01 May 2008 22:30:16 +0000
parents b7e99bfeadc9
children fe675761d091
comparison
equal deleted inserted replaced
536:d8494488d2d2 537:8d9992e2de56
534 secure_fprintf(ssi, "# end of config file #\n"); 534 secure_fprintf(ssi, "# end of config file #\n");
535 secure_fprintf(ssi, "######################################################################\n"); 535 secure_fprintf(ssi, "######################################################################\n");
536 536
537 537
538 if (secure_close(ssi)) 538 if (secure_close(ssi))
539 {
540 printf_term(_("error saving config file: %s\nerror: %s\n"), rc_path, 539 printf_term(_("error saving config file: %s\nerror: %s\n"), rc_path,
541 secsave_strerror(secsave_errno)); 540 secsave_strerror(secsave_errno));
542 g_free(rc_path);
543 return;
544 }
545 541
546 g_free(rc_path); 542 g_free(rc_path);
547 } 543 }
548 544
549 /* 545 /*