|
@@ -85,7 +85,7 @@ protover_all_supported(const char *s, char **missing_out)
|
|
rust_str_ref_t missing_out_copy = NULL;
|
|
rust_str_ref_t missing_out_copy = NULL;
|
|
int is_supported = rust_protover_all_supported(s, &missing_out_copy);
|
|
int is_supported = rust_protover_all_supported(s, &missing_out_copy);
|
|
|
|
|
|
- if (!is_supported) {
|
|
|
|
|
|
+ if (!is_supported && missing_out_copy != NULL) {
|
|
move_rust_str_to_c_and_free(missing_out_copy, missing_out);
|
|
move_rust_str_to_c_and_free(missing_out_copy, missing_out);
|
|
}
|
|
}
|
|
|
|
|