SF.net SVN: geany: [2338] trunk

eht16 at users.sourceforge.net eht16 at xxxxx
Thu Mar 13 15:18:42 UTC 2008


Revision: 2338
          http://geany.svn.sourceforge.net/geany/?rev=2338&view=rev
Author:   eht16
Date:     2008-03-13 08:18:42 -0700 (Thu, 13 Mar 2008)

Log Message:
-----------
Fix compiler warnings about uninitialized variables.

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

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2008-03-13 15:08:03 UTC (rev 2337)
+++ trunk/ChangeLog	2008-03-13 15:18:42 UTC (rev 2338)
@@ -25,6 +25,8 @@
    Add missing accelerator for string "Toggle All Additional Widgets".
  * plugins/htmlchars.c: Use a separate string for keybinding label to
                         avoid display of an underscore.
+ * src/callbacks.c, src/tools.c: Fix compiler warnings about
+                                 uninitialized variables.
 
 
 2008-03-12  Nick Treleaven  <nick(dot)treleaven(at)btinternet(dot)com>

Modified: trunk/src/callbacks.c
===================================================================
--- trunk/src/callbacks.c	2008-03-13 15:08:03 UTC (rev 2337)
+++ trunk/src/callbacks.c	2008-03-13 15:18:42 UTC (rev 2338)
@@ -398,7 +398,8 @@
 	else
 	if (IS_SCINTILLA(focusw) && idx >= 0)
 	{
-#ifdef G_OS_WIN32
+#if 0
+//#ifdef G_OS_WIN32
 		/* insert the text manually for now, because the auto conversion of EOL characters by
 		 * by Scintilla seems to make problems */
 		/** TODO this is probably obsolete now since we fixed PLAT_GTK_WIN32 in Scintilla */
@@ -932,7 +933,7 @@
 	if (sci_can_copy(sci))
 	{
 		gchar *result = NULL;
-		gint cmd;
+		gint cmd = SCI_LOWERCASE;
 		gint text_len = sci_get_selected_text_length(sci);
 		gboolean rectsel = scintilla_send_message(sci, SCI_SELECTIONISRECTANGLE, 0, 0);
 

Modified: trunk/src/tools.c
===================================================================
--- trunk/src/tools.c	2008-03-13 15:08:03 UTC (rev 2337)
+++ trunk/src/tools.c	2008-03-13 15:18:42 UTC (rev 2338)
@@ -361,7 +361,7 @@
 {
 	GtkWidget *item;
 	gint key_idx = -1;
-	KeyBinding *kb;
+	KeyBinding *kb = NULL;
 
 	switch (idx)
 	{


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