[asterisk-commits] kpfleming: branch 1.2 r47689 - /branches/1.2/config.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Nov 15 12:58:46 MST 2006


Author: kpfleming
Date: Wed Nov 15 13:58:46 2006
New Revision: 47689

URL: http://svn.digium.com/view/asterisk?view=rev&rev=47689
Log:
when re-writing the config file, don't repeat the path if it hasn't changed

Modified:
    branches/1.2/config.c

Modified: branches/1.2/config.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/config.c?view=diff&rev=47689&r1=47688&r2=47689
==============================================================================
--- branches/1.2/config.c (original)
+++ branches/1.2/config.c Wed Nov 15 13:58:46 2006
@@ -704,7 +704,10 @@
 			ast_verbose(VERBOSE_PREFIX_2 "Saving '%s': ", fn);
 		fprintf(f, ";!\n");
 		fprintf(f, ";! Automatically generated configuration file\n");
-		fprintf(f, ";! Filename: %s (%s)\n", configfile, fn);
+		if (strcmp(configfile, fn))
+			fprintf(f, ";! Filename: %s (%s)\n", configfile, fn);
+		else
+			fprintf(f, ";! Filename: %s\n", configfile);
 		fprintf(f, ";! Generator: %s\n", generator);
 		fprintf(f, ";! Creation Date: %s", date);
 		fprintf(f, ";!\n");



More information about the asterisk-commits mailing list