projects
/
cascardo
/
sgp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix inverted error check.
[cascardo/sgp.git]
/
src
/
main.c
diff --git
a/src/main.c
b/src/main.c
index
0db7962
..
4844705
100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-35,7
+35,7
@@
int main(int argc, char **argv)
if (!msg)
goto out_msg;
r = sgp_group_add_friend(group, friend);
if (!msg)
goto out_msg;
r = sgp_group_add_friend(group, friend);
- if (
!
r)
+ if (r)
goto out_add;
r = sgp_share(group, msg);
sgp_msg_destroy(msg);
goto out_add;
r = sgp_share(group, msg);
sgp_msg_destroy(msg);