From 0c04b54d4d78f7f3117948358b3d05e644fa1aeb Mon Sep 17 00:00:00 2001 From: Chelsea Holland Komlo Date: Thu, 28 Sep 2017 03:08:37 +0000 Subject: minimize scope for unsafe update documentation missing check for null --- src/or/protover_rust.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/or/protover_rust.c') diff --git a/src/or/protover_rust.c b/src/or/protover_rust.c index ebe815357b..261555d1ec 100644 --- a/src/or/protover_rust.c +++ b/src/or/protover_rust.c @@ -85,7 +85,7 @@ protover_all_supported(const char *s, char **missing_out) rust_str_ref_t missing_out_copy = NULL; 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); } -- cgit v1.2.3-54-g00ecf