diff options
author | Michael Vetter <jubalh@openmailbox.org> | 2015-10-09 10:34:58 +0200 |
---|---|---|
committer | Michael Vetter <jubalh@openmailbox.org> | 2015-10-09 10:34:58 +0200 |
commit | 8dfa41ea8e05262225c83e38ccba1ea83f10e4b8 (patch) | |
tree | f4f3587a2ec1fc48bd19d5cc34e08cf20e02242d /src/ui/core.c | |
parent | de15d47be4bb43f039a27bbd39dc41fd7e10ad59 (diff) | |
download | profani-tty-8dfa41ea8e05262225c83e38ccba1ea83f10e4b8.tar.gz |
Remove double declaration and reduce scope of pcontact
In command/commands.c you declare pcontact at the top of the function. Later in one case you declare it again and use it in a small scope. And in the same function you use it again this time from the first declaration. I think you intended only declaring it one time. At first I thought about top of the function because its easier to find. Then I saw that you declare "Jid jid" not at the top too, and I think for the sake of reducing scope it is better. So I went for this approach.
Diffstat (limited to 'src/ui/core.c')
0 files changed, 0 insertions, 0 deletions