Skip to content

Commit

Permalink
Don't use variable length arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowNinja committed Nov 28, 2013
1 parent 7433d65 commit ff25218
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rollback.cpp
Expand Up @@ -429,7 +429,7 @@ bool SQL_registerRow(ActionRow row)
*/
sqlite3_reset(dbs_do);

int bind [20 + (((bool) row.id) ? 1 : 0)], ii = 0;
int bind [22], ii = 0;
bool nodeMeta = false;

bind[ii++] = sqlite3_bind_int(dbs_do, 1, row.actor);
Expand Down

0 comments on commit ff25218

Please sign in to comment.