forked from pool/libotr
- libotr-test-uninitialized.patch: Fix use of uninitialized memory in testsuite - Don't disable testsuite on ppc OBS-URL: https://build.opensuse.org/request/show/638817 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libotr?expand=0&rev=24
13 lines
399 B
Diff
13 lines
399 B
Diff
Index: libotr-4.1.1/tests/unit/test_auth.c
|
|
===================================================================
|
|
--- libotr-4.1.1.orig/tests/unit/test_auth.c
|
|
+++ libotr-4.1.1/tests/unit/test_auth.c
|
|
@@ -67,6 +67,7 @@ static void test_auth_clear(void)
|
|
OtrlAuthInfo *auth = &ctx.auth;
|
|
|
|
/* API call. */
|
|
+ otrl_auth_new(&ctx);
|
|
otrl_auth_clear(auth);
|
|
|
|
ok(auth->authstate == OTRL_AUTHSTATE_NONE &&
|