MCPcopy Create free account
hub / github.com/MariaDB/server / realloc_with_extra_if_needed

Method realloc_with_extra_if_needed

sql/sql_string.h:764–772  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

762 return FALSE;
763 }
764 bool realloc_with_extra_if_needed(size_t arg_length)
765 {
766 if (arg_length < Alloced_length)
767 {
768 Ptr[arg_length]=0; // behave as if realloc was called.
769 return 0;
770 }
771 return realloc_with_extra(arg_length);
772 }
773 // Shrink the buffer, but only if it is allocated on the heap.
774 void shrink(size_t arg_length);
775

Callers 4

append_simpleFunction · 0.80
val_strMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected