Commit 10bfc62b authored by Derek Konigsberg's avatar Derek Konigsberg

Fix build issue for C89 compatibility

parent 98c6454d
......@@ -487,9 +487,10 @@ void axolotl_str_serialize_protobuf(ProtobufCBinaryData *buffer, const char *str
char *axolotl_str_deserialize_protobuf(ProtobufCBinaryData *buffer)
{
char *str = 0;
assert(buffer);
char *str = malloc(buffer->len + 1);
str = malloc(buffer->len + 1);
if(!str) {
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment