commit | ed5cdfa293ec57cb14b98cdc3fa00ac5ec1c1ed4 | [log] [tgz] |
---|---|---|
author | Stephen Hines <srhines@google.com> | Mon Nov 15 18:00:37 2010 -0800 |
committer | Stephen Hines <srhines@google.com> | Tue Nov 16 14:20:41 2010 -0800 |
tree | 3e3ec0d2ed64ecc9d5ebd01b89018963b91db90b | |
parent | 0cec8afdb4f9d78adf88c9b9b41e993aef617bea [diff] |
Remove zero-init/destructor WARs. Change-Id: I27da6a11c2325711194b123c6fdc3d2a7bdf02a8
diff --git a/carousel/java/com/android/ex/carousel/carousel.rs b/carousel/java/com/android/ex/carousel/carousel.rs index 230d1fe..79798b0 100644 --- a/carousel/java/com/android/ex/carousel/carousel.rs +++ b/carousel/java/com/android/ex/carousel/carousel.rs
@@ -286,10 +286,9 @@ static void updateAllocationVars(Card_t* newcards) { // Cards - rs_allocation cardAlloc = {0}; + rs_allocation cardAlloc; rsSetObject(&cardAlloc, rsGetAllocation(newcards)); cardCount = (cardAllocationValid && rsIsObject(cardAlloc)) ? rsAllocationGetDimX(cardAlloc) : 0; - rsClearObject(&cardAlloc); } void setRadius(float rad)