Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
matrix-org
Olm
Commits
182f33f8
Commit
182f33f8
authored
May 23, 2016
by
Richard van der Hoff
Browse files
Complete fixes for olm_*_last_error
Should have been in the previous commit :/
parent
f69577ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/olm.cpp
View file @
182f33f8
...
...
@@ -202,7 +202,7 @@ const char * olm_session_last_error(
OlmSession
*
session
)
{
unsigned
error
=
unsigned
(
from_c
(
session
)
->
last_error
);
if
(
error
<
sizeof
(
ERRORS
))
{
if
(
error
<
(
sizeof
(
ERRORS
)
/
sizeof
(
ERRORS
[
0
]))
)
{
return
ERRORS
[
error
];
}
else
{
return
"UNKNOWN_ERROR"
;
...
...
@@ -213,7 +213,7 @@ const char * olm_utility_last_error(
OlmUtility
*
utility
)
{
unsigned
error
=
unsigned
(
from_c
(
utility
)
->
last_error
);
if
(
error
<
sizeof
(
ERRORS
))
{
if
(
error
<
(
sizeof
(
ERRORS
)
/
sizeof
(
ERRORS
[
0
]))
)
{
return
ERRORS
[
error
];
}
else
{
return
"UNKNOWN_ERROR"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment