commit | b98523444ae5a9a11cc81f846c89fbee40654bae | [log] [tgz] |
---|---|---|
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | Tue Jun 02 09:38:41 2015 +0200 |
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | Tue Jun 02 09:51:32 2015 +0200 |
tree | deba35949b9ec3f9f2e9f5b4109cd0dec742797c | |
parent | 3332d0ce148164c04f2f3264edfb9c83a41ff557 [diff] |
sgsn: Simplify finding/using the first address of the result The loop was used to print all returned addresses but we can simply pick the first one. This is fixing a coverity issue that the loop will be executed eaxactly once (and that was on purpose). Simplify the code and just take the first element (which might be NULL). Fixes: Coverity CID#1302852