aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ambigator.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ambigator.c b/src/ambigator.c
index 7760ab8b..a922cacc 100644
--- a/src/ambigator.c
+++ b/src/ambigator.c
@@ -928,10 +928,10 @@ int main(int argc, char *argv[])
if ( n_crystals == max_crystals ) {
struct flist **crystals_new;
- size_t nsz;
+ size_t ns;
- nsz = (max_crystals+1024)*sizeof(struct flist *);
- crystals_new = realloc(crystals, nsz);
+ ns = (max_crystals+1024)*sizeof(struct flist *);
+ crystals_new = realloc(crystals, ns);
if ( crystals_new == NULL ) {
fprintf(stderr, "Failed to allocate "
"memory for crystals.\n");