DA: Fix build warnings
[platform/upstream/connman.git] / gsupplicant / dbus.c
index 2957979..73c9ace 100755 (executable)
@@ -30,6 +30,7 @@
 #include <glib.h>
 
 #include "dbus.h"
+#include <connman/log.h>
 
 #define TIMEOUT 30000
 
@@ -496,7 +497,10 @@ int supplicant_dbus_method_call(const char *path,
 
        if (!path || !interface || !method)
                return -EINVAL;
-
+#if defined TIZEN_EXT
+       if (strlen(path) == 0)
+               return -EINVAL;
+#endif
        method_call = g_try_new0(struct method_call_data, 1);
        if (!method_call)
                return -ENOMEM;