summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2010-12-07 07:30:39 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2010-12-07 07:30:39 +0000
commit571312113971eee30d29f9e9abfddded6170683a (patch)
tree1337c2728dfa4ef68de3824d44a396b8ba5565ab
parentf31d506accab98a432758076f53a19b0ff48f732 (diff)
avoid segv
SVN revision: 55343
-rw-r--r--ecrustify/src/indent.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ecrustify/src/indent.cpp b/ecrustify/src/indent.cpp
index 3b5f835..81df2ef 100644
--- a/ecrustify/src/indent.cpp
+++ b/ecrustify/src/indent.cpp
@@ -1310,7 +1310,7 @@ void indent_text(void)
1310 __func__, pc->orig_line, vardefcol); 1310 __func__, pc->orig_line, vardefcol);
1311 reindent_line(pc, vardefcol); 1311 reindent_line(pc, vardefcol);
1312 } 1312 }
1313 else if ((pc->type == CT_STRING) && (prev->type == CT_STRING) && 1313 else if ((pc->type == CT_STRING) && prev && (prev->type == CT_STRING) &&
1314 cpd.settings[UO_indent_align_string].b) 1314 cpd.settings[UO_indent_align_string].b)
1315 { 1315 {
1316 tmp = (xml_indent != 0) ? xml_indent : prev->column; 1316 tmp = (xml_indent != 0) ? xml_indent : prev->column;