SHA256
1
0
forked from pool/redis
redis/getMcontextEip-return-value.patch

14 lines
445 B
Diff
Raw Normal View History

Index: redis-6.0.1/src/debug.c
===================================================================
--- redis-6.0.1.orig/src/debug.c
+++ redis-6.0.1/src/debug.c
@@ -919,6 +919,8 @@ static void *getMcontextEip(ucontext_t *
return (void*) uc->uc_mcontext.arm_pc;
#elif defined(__aarch64__) /* Linux AArch64 */
return (void*) uc->uc_mcontext.pc;
+ #else
+ return NULL;
#endif
#elif defined(__FreeBSD__)
/* FreeBSD */