indented.
This commit is contained in:
@@ -224,8 +224,8 @@ void *Keylist_Data_Delete_By_Index(
|
||||
struct Keylist_Node *node;
|
||||
void *data = NULL;
|
||||
|
||||
if (list && list->array && list->count &&
|
||||
(index >= 0) && (index < list->count)) {
|
||||
if (list && list->array && list->count && (index >= 0) &&
|
||||
(index < list->count)) {
|
||||
node = list->array[index];
|
||||
if (node)
|
||||
data = node->data;
|
||||
@@ -314,8 +314,8 @@ void *Keylist_Data_Index(
|
||||
{
|
||||
struct Keylist_Node *node = NULL;
|
||||
|
||||
if (list && list->array && list->count &&
|
||||
(index >= 0) && (index < list->count))
|
||||
if (list && list->array && list->count && (index >= 0) &&
|
||||
(index < list->count))
|
||||
node = list->array[index];
|
||||
|
||||
return node ? node->data : NULL;
|
||||
@@ -329,8 +329,8 @@ KEY Keylist_Key(
|
||||
KEY key = 0; /* return value */
|
||||
struct Keylist_Node *node;
|
||||
|
||||
if (list && list->array && list->count &&
|
||||
(index >= 0) && (index < list->count)) {
|
||||
if (list && list->array && list->count && (index >= 0) &&
|
||||
(index < list->count)) {
|
||||
node = list->array[index];
|
||||
if (node)
|
||||
key = node->key;
|
||||
|
||||
Reference in New Issue
Block a user