提交 12f2f674 authored 作者: William King's avatar William King

Let's bit a bit safer when dereferencing pointers.

上级 480407e5
......@@ -851,9 +851,11 @@ amf0_data * amf0_object_get(amf0_data * data, const char * name) {
return (node != NULL) ? node->data : NULL;
}
/* we have to skip the element data to reach the next name */
if ( node != NULL && node->next != NULL ) {
node = node->next->next;
}
}
}
return NULL;
}
......@@ -870,9 +872,11 @@ amf0_data * amf0_object_set(amf0_data * data, const char * name, amf0_data * ele
}
}
/* we have to skip the element data to reach the next name */
if ( node != NULL && node->next != NULL ) {
node = node->next->next;
}
}
}
return NULL;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论