History

Fix empty pattern so it returns an empty structure.

Christopher Snowhill committed 9 years ago

Commit d246d1c1 parent f36896a1 file · +6 −1Browse files

Unified · Split

src/it/readpsm.c+6−1
@@ -162,7 +162,12 @@ static int it_psm_process_pattern(IT_PATTERN * pattern, const unsigned char * da · 161 unmodified lines
162 162
163 nrows = data[0] | (data[1] << 8);163 nrows = data[0] | (data[1] << 8);
164 164
165 if (!nrows) return 0;165 if (!nrows) {
166 pattern->n_rows = 0;
167 pattern->n_entries = 0;
168 pattern->entry = NULL;
169 return 0;
170 }
166 171
167 pattern->n_rows = nrows;172 pattern->n_rows = nrows;
168 173

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t