summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorjan.reininghaus <jan.reininghaus@8e3bb3c2-eed4-f18f-5264-0b6c94e6926d>2013-10-22 07:44:21 +0000
committerjan.reininghaus <jan.reininghaus@8e3bb3c2-eed4-f18f-5264-0b6c94e6926d>2013-10-22 07:44:21 +0000
commit7f8d53438a019d9834d7ed66844aa46b0e175e94 (patch)
tree00e429fc93439bf45ee5a5a012b1afab3cd53226 /include
parentf2766decb15c220b609bc09530b9713a702e4a81 (diff)
git-svn-id: https://phat.googlecode.com/svn/trunk@141 8e3bb3c2-eed4-f18f-5264-0b6c94e6926d
Diffstat (limited to 'include')
-rw-r--r--include/phat/boundary_matrix.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/phat/boundary_matrix.h b/include/phat/boundary_matrix.h
index bcb2541..940138f 100644
--- a/include/phat/boundary_matrix.h
+++ b/include/phat/boundary_matrix.h
@@ -327,7 +327,8 @@ namespace phat {
for( index cur_col = 0; cur_col < num_cols; cur_col++ ) {
index num_rows = buffer[ cur_col + 1 ] - buffer[ cur_col ];
temp_col.resize( num_rows );
- input_stream.read( (char*)&temp_col[ 0 ], sizeof( int64_t ) * temp_col.size() );
+ if( num_rows > 0 )
+ input_stream.read( (char*)&temp_col[ 0 ], sizeof( int64_t ) * temp_col.size() );
set_col( cur_col, temp_col );
}
}