anjuta r4776 - in trunk: . plugins/language-support-cpp-java
- From: mcora svn gnome org
- To: svn-commits-list gnome org
- Subject: anjuta r4776 - in trunk: . plugins/language-support-cpp-java
- Date: Fri, 20 Feb 2009 21:46:24 +0000 (UTC)
Author: mcora
Date: Fri Feb 20 21:46:24 2009
New Revision: 4776
URL: http://svn.gnome.org/viewvc/anjuta?rev=4776&view=rev
Log:
* plugins/language-support-cpp-java/plugin.c (spaces_only):
fixed a crasher: press enter on empty line.
Modified:
trunk/ChangeLog
trunk/plugins/language-support-cpp-java/plugin.c
Modified: trunk/plugins/language-support-cpp-java/plugin.c
==============================================================================
--- trunk/plugins/language-support-cpp-java/plugin.c (original)
+++ trunk/plugins/language-support-cpp-java/plugin.c Fri Feb 20 21:46:24 2009
@@ -1222,8 +1222,13 @@
spaces_only (IAnjutaEditor* editor, IAnjutaIterable* begin, IAnjutaIterable* end)
{
gboolean empty = TRUE;
- gchar* text = ianjuta_editor_get_text (editor, begin, end, NULL);
gchar* idx;
+ gchar* text = ianjuta_editor_get_text (editor, begin, end, NULL);
+
+ if (text == NULL)
+ return TRUE;
+
+
for (idx = text; *idx != '\0'; idx++)
{
if (!isspace(*idx))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]