View Single Post
Old 24 January 2021, 10:50   #33
alkis
Registered User

 
Join Date: Dec 2010
Location: Athens/Greece
Age: 50
Posts: 579
Thanks for your work!

I tried the current master from git (kubuntu 20.04). Compiled ok. Core dumped when starting.
I had to modify fsemu_refable_ref_refable to just return on parameter being NULL. Seems to be working now.

diff --git a/fsemu/src/fsemu-refable.c b/fsemu/src/fsemu-refable.c
index e215dceb..17541b7e 100644
--- a/fsemu/src/fsemu-refable.c
+++ b/fsemu/src/fsemu-refable.c
@@ -45,7 +45,10 @@ static bool fsemu_refable_check_magic(fsemu_refable_t *refable)

void fsemu_refable_ref_refable(fsemu_refable_t *refable)
{
- if (!fsemu_refable_check_magic(refable)) {
+ if (!refable)
+ return;
+
+ if (!fsemu_refable_check_magic(refable)) {
return;
}
refable->ref_count += 1;
alkis is offline  
 
Page generated in 0.05052 seconds with 11 queries