summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2011-11-14 07:30:29 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2011-11-14 07:30:29 +0000
commita5b3cd54069b30e9472721aee4dff61b7c43a316 (patch)
tree4c1f669adc1d1c5b0053cb327d24a26de314b09c
parent3b4d0d66d59125e6796fe4adcb2aba7e21b8b7eb (diff)
fix crash
SVN revision: 65147
-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 74a43e8..391f027 100644
--- a/ecrustify/src/indent.cpp
+++ b/ecrustify/src/indent.cpp
@@ -1461,7 +1461,7 @@ void indent_text(void)
1461 (pc->type == CT_COMMENT_CPP)) 1461 (pc->type == CT_COMMENT_CPP))
1462 { 1462 {
1463 frm.pse[frm.pse_tos].indent_tmp = frm.pse[frm.pse_tos].indent; 1463 frm.pse[frm.pse_tos].indent_tmp = frm.pse[frm.pse_tos].indent;
1464 if (chunk_is_newline(pc) && (!chunk_is_comment(pc->prev)) && (prev->type == CT_BRACE_OPEN) && cpd.settings[UO_indent_brace_width].b) 1464 if (chunk_is_newline(pc) && (!chunk_is_comment(pc->prev)) && prev && (prev->type == CT_BRACE_OPEN) && cpd.settings[UO_indent_brace_width].b)
1465 { 1465 {
1466 frm.pse[frm.pse_tos].indent++; 1466 frm.pse[frm.pse_tos].indent++;
1467 frm.pse[frm.pse_tos].indent_tab++; 1467 frm.pse[frm.pse_tos].indent_tab++;