(svn r4689) - Codechange: correct parameter order or calloc, and use the sizeof the variable rather than a struct
authorpeter1138
Tue, 02 May 2006 14:34:53 +0000
changeset 3718 0190e80cd69e
parent 3717 360ddbd9fe85
child 3719 2b15f7bf7461
(svn r4689) - Codechange: correct parameter order or calloc, and use the sizeof the variable rather than a struct
strgen/strgen.c
--- a/strgen/strgen.c	Tue May 02 14:34:00 2006 +0000
+++ b/strgen/strgen.c	Tue May 02 14:34:53 2006 +0000
@@ -795,7 +795,7 @@
 			}
 
 			// Allocate a new LangString
-			ent = calloc(sizeof(LangString), 1);
+			ent = calloc(1, sizeof(*ent));
 			_strings[_next_string_id] = ent;
 			ent->index = _next_string_id++;
 			ent->name = strdup(str);