SF.net SVN: geany: [1704] trunk

ntrel at users.sourceforge.net ntrel at xxxxx
Mon Jul 16 14:49:48 UTC 2007


Revision: 1704
          http://svn.sourceforge.net/geany/?rev=1704&view=rev
Author:   ntrel
Date:     2007-07-16 07:49:48 -0700 (Mon, 16 Jul 2007)

Log Message:
-----------
Fix segfault (oops).

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/src/callbacks.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2007-07-16 14:42:36 UTC (rev 1703)
+++ trunk/ChangeLog	2007-07-16 14:49:48 UTC (rev 1704)
@@ -3,6 +3,8 @@
  * src/dialogs.c, src/callbacks.c:
    Use Rename button instead of checkbox for Save As dialog.
    Add tooltips for Save As dialog's other options.
+ * src/callbacks.c:
+   Fix segfault (oops).
 
 
 2007-07-13  Nick Treleaven  <nick.treleaven at btinternet.com>

Modified: trunk/src/callbacks.c
===================================================================
--- trunk/src/callbacks.c	2007-07-16 14:42:36 UTC (rev 1703)
+++ trunk/src/callbacks.c	2007-07-16 14:49:48 UTC (rev 1704)
@@ -870,7 +870,7 @@
 	gchar *data;
 
 	// use old file type (or maybe NULL for auto detect would be better?)
-	idx = document_new_file(utf8_filename, doc_list[idx].file_type);
+	idx = document_new_file(utf8_filename, doc_list[old_idx].file_type);
 
 	sci_set_undo_collection(doc_list[idx].sci, FALSE); // avoid creation of an undo action
 	sci_empty_undo_buffer(doc_list[idx].sci);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list