Revision: 839 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=839&view=rev Author: frlan Date: 2009-07-18 00:16:18 +0000 (Sat, 18 Jul 2009)
Log Message: ----------- GeanyLaTeX: Fix some minor compiler warnings
Modified Paths: -------------- trunk/geanylatex/src/bibtex.c trunk/geanylatex/src/latexenvironments.c trunk/geanylatex/src/latexstructure.c
Modified: trunk/geanylatex/src/bibtex.c =================================================================== --- trunk/geanylatex/src/bibtex.c 2009-07-18 00:15:50 UTC (rev 838) +++ trunk/geanylatex/src/bibtex.c 2009-07-18 00:16:18 UTC (rev 839) @@ -123,7 +123,6 @@ /* Creating and initialising a array for a bibTeX entry with NULL pointers*/ GPtrArray *glatex_bibtex_init_empty_entry() { - gint i; GPtrArray *entry = g_ptr_array_new(); g_ptr_array_set_size(entry, GLATEX_BIBTEX_N_ENTRIES); return entry;
Modified: trunk/geanylatex/src/latexenvironments.c =================================================================== --- trunk/geanylatex/src/latexenvironments.c 2009-07-18 00:15:50 UTC (rev 838) +++ trunk/geanylatex/src/latexenvironments.c 2009-07-18 00:16:18 UTC (rev 839) @@ -70,7 +70,7 @@ if (sci_has_selection(doc->editor->sci)) { gchar *selection = NULL; - const gchar *replacement = NULL; + gchar *replacement = NULL;
selection = sci_get_selection_contents(doc->editor->sci);
Modified: trunk/geanylatex/src/latexstructure.c =================================================================== --- trunk/geanylatex/src/latexstructure.c 2009-07-18 00:15:50 UTC (rev 838) +++ trunk/geanylatex/src/latexstructure.c 2009-07-18 00:16:18 UTC (rev 839) @@ -64,10 +64,11 @@ { gint i; GeanyDocument *doc = NULL; - doc = document_get_current(); gchar *tmp = NULL; GString *haystack = NULL;
+ doc = document_get_current(); + if (doc == NULL) return;
@@ -106,10 +107,11 @@ { gint i; GeanyDocument *doc = NULL; - doc = document_get_current(); gchar *tmp = NULL; GString *haystack = NULL;
+ doc = document_get_current(); + if (doc == NULL) return;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
plugins-commits@lists.geany.org