Skip to content

Commit

Permalink
Remove unneeded null pointer check
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil committed May 16, 2017
1 parent 46ca830 commit 0ba202f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ccutil/genericvector.h
Expand Up @@ -676,7 +676,7 @@ void GenericVector<T>::reserve(int size) {
T* new_array = new T[size];
for (int i = 0; i < size_used_; ++i)
new_array[i] = data_[i];
if (data_ != NULL) delete[] data_;
delete[] data_;
data_ = new_array;
size_reserved_ = size;
}
Expand Down

0 comments on commit 0ba202f

Please sign in to comment.