Fix for a compiler warning caused by one of my commits yesterday.

This commit is contained in:
Joshua Leung 2007-08-23 09:37:58 +00:00
parent 6cd036ed44
commit 866218eb15

@ -150,15 +150,11 @@ char *getname_ipocurve(IpoCurve *icu, Object *ob)
Key *key= ob_get_key(ob);
KeyBlock *kb= key_get_keyblock(key, icu->adrcode);
if (kb) {
/* only return name if it has been set, otherwise use
* default method using static string (Key #)
*/
if (kb->name[0] == '\0')
break; /* stop looping through keyblocks */
else
return kb->name; /* return keyblock's name */
}
/* only return name if it has been set, otherwise use
* default method using static string (Key #)
*/
if ((kb) && (kb->name[0] != '\0'))
return kb->name; /* return keyblock's name */
/* in case keyblock is not named or no key/keyblock was found */
sprintf(name, "Key %d", icu->adrcode);