aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2014-03-30 22:46:07 +0200
committerThomas White <taw@physics.org>2014-03-30 22:46:07 +0200
commit93291f2fadccf00c6134cf9ebafcd7c6c0986519 (patch)
tree4f52a02368dc09e19a6a698608ab84661af6a7ac
parent40cbfb79fb4056b07ac8a52484f874d801f40aa2 (diff)
Formatting
-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");