projects
/
xonotic
/
gmqcc.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e7143d
)
Fix a possibly uninitialized variable
author
Wolfgang (Blub) Bumiller <blub@speed.at>
Thu, 28 Jun 2012 15:27:02 +0000
(17:27 +0200)
committer
Wolfgang (Blub) Bumiller <blub@speed.at>
Thu, 28 Jun 2012 15:27:02 +0000
(17:27 +0200)
ir.c
patch
|
blob
|
history
diff --git
a/ir.c
b/ir.c
index 74363f8df0188565c3704934837b3e93749e1e48..e05f4d70615034352a6ee76a2364e56c23f5457f 100644
(file)
--- a/
ir.c
+++ b/
ir.c
@@
-1665,6
+1665,10
@@
bool ir_function_allocate_locals(ir_function *self)
if (!function_allocator_positions_add(&alloc, 0))
goto error;
+ if (alloc.sizes_count)
+ pos = alloc.positions[0] + alloc.sizes[0];
+ else
+ pos = 0;
for (i = 1; i < alloc.sizes_count; ++i)
{
pos = alloc.positions[i-1] + alloc.sizes[i-1];