Fixing broke linux build

The spine code building on Linux stops when checking that some variables
can be used when not initialized. This commit fixes it.

Signed-off-by: Rodrigo Goncalves de Oliveira <rodrigo.goncalves@openbossa.org>
This commit is contained in:
Rodrigo Goncalves de Oliveira 2013-04-24 11:06:07 -04:00
parent 30cc4bb1af
commit 6f994b16cf
2 changed files with 7 additions and 2 deletions

View File

@ -55,9 +55,14 @@ void AtlasRegion_dispose (AtlasRegion* self) {
/**/
typedef struct {
typedef struct _struct_Str {
const char* begin;
const char* end;
_struct_Str()
: begin(NULL)
, end(NULL) {
}
} Str;
static void trim (Str* str) {

View File

@ -58,7 +58,7 @@ Skeleton* Skeleton_create (SkeletonData* data) {
SlotData *slotData = data->slots[i];
/* Find bone for the slotData's boneData. */
Bone *bone;
Bone *bone = NULL;
for (ii = 0; ii < self->boneCount; ++ii) {
if (data->bones[ii] == slotData->boneData) {
bone = self->bones[ii];