fix Clang warning

This commit is contained in:
David Anderson 2013-05-20 13:00:22 -07:00
parent f1c7b6a97d
commit 7472e29495
1 changed files with 2 additions and 1 deletions

View File

@ -177,7 +177,7 @@ void make_work(vector<string> &wu_names) {
char buf[BLOB_SIZE];
R_RSA_PRIVATE_KEY key;
int nwu_names = wu_names.size();
DB_WORKUNIT wus[nwu_names];
DB_WORKUNIT *wus = new DB_WORKUNIT[nwu_names]();
int i;
static int index=0;
@ -265,6 +265,7 @@ void make_work(vector<string> &wu_names) {
wait_for_results(new_wu_id);
}
delete[] wus;
}
void usage(char *name) {