summaryrefslogtreecommitdiff
path: root/navit/binding
diff options
context:
space:
mode:
authorhorwitz <horwitz@ffa7fe5e-494d-0410-b361-a75ebd5db220>2009-06-17 20:46:48 +0000
committerhorwitz <horwitz@ffa7fe5e-494d-0410-b361-a75ebd5db220>2009-06-17 20:46:48 +0000
commit9527a2da11b3b55b078736a3c398439c0990be87 (patch)
tree002819a9cc17520d18f0478a36479fb334866c7e /navit/binding
parent5371d4edce5cf197e030cbd860b506e1615b0f92 (diff)
downloadnavit-9527a2da11b3b55b078736a3c398439c0990be87.tar.gz
Fix:core:Imporove Fix for coverity bug #30.
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@2340 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/binding')
-rw-r--r--navit/binding/dbus/binding_dbus.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/navit/binding/dbus/binding_dbus.c b/navit/binding/dbus/binding_dbus.c
index ac7e77e2d..af6c5a514 100644
--- a/navit/binding/dbus/binding_dbus.c
+++ b/navit/binding/dbus/binding_dbus.c
@@ -442,7 +442,7 @@ static DBusHandlerResult
request_navit_zoom(DBusConnection *connection, DBusMessage *message)
{
int factor;
- struct point *p = NULL;
+ struct point p;
struct navit *navit;
DBusMessageIter iter;
@@ -458,14 +458,14 @@ request_navit_zoom(DBusConnection *connection, DBusMessage *message)
if (dbus_message_iter_has_next(&iter))
{
dbus_message_iter_next(&iter);
- if (p && !point_get_from_message(message, &iter, p))
+ if (!point_get_from_message(message, &iter, &p))
return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
}
if (factor > 1)
- navit_zoom_in(navit, factor, p);
+ navit_zoom_in(navit, factor, &p);
else if (factor < -1)
- navit_zoom_out(navit, 0-factor, p);
+ navit_zoom_out(navit, 0-factor, &p);
return empty_reply(connection, message);