Skip to content

Commit 8f16ad9

Browse files
committed
lib: Allow nullptr function on LiveUpdate::exec(blob, key, func)
1 parent 0fc7006 commit 8f16ad9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/LiveUpdate/update.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ inline bool validate_header(const Class* hdr)
8686

8787
void LiveUpdate::exec(const buffer_t& blob, std::string key, storage_func func)
8888
{
89-
register_serialization_callback(key, func);
89+
if (func != nullptr) register_serialization_callback(key, func);
9090
LiveUpdate::exec(blob);
9191
}
9292

0 commit comments

Comments
 (0)