Wenzel / libmicrovmi

A cross-platform unified Virtual Machine Introspection API library
https://wenzel.github.io/libmicrovmi/
GNU General Public License v3.0
165 stars 15 forks source link

capi: avoid panicking when env_logger is initialized multiple times #183

Closed Wenzel closed 3 years ago

Wenzel commented 3 years ago

This fixes a dumb segfault when calling microvmi_envlogger_init() multiple times

codecov-io commented 3 years ago

Codecov Report

Merging #183 (2d28f38) into master (e81ab36) will not change coverage. The diff coverage is 0.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #183   +/-   ##
=======================================
  Coverage   14.37%   14.37%           
=======================================
  Files           5        5           
  Lines         466      466           
  Branches       86       87    +1     
=======================================
  Hits           67       67           
  Misses        377      377           
  Partials       22       22           
Flag Coverage Δ
unittests 14.37% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/capi.rs 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update e81ab36...2d28f38. Read the comment docs.