Fix the duration = NULL and it results in crash 88/26488/1
authorwu zheng <wu.zheng@intel.com>
Mon, 25 Aug 2014 08:09:50 +0000 (16:09 +0800)
committerwu zheng <wu.zheng@intel.com>
Mon, 25 Aug 2014 08:09:50 +0000 (16:09 +0800)
commit1eed8af4f2a4f1f67ce502821d44a25c440eb300
tree2d9a4fed6bfb1bf199773bf2f1294aa28b058974
parent476ad8e5672d1335e524b5e69bac3b072d23b393
Fix the duration = NULL and it results in crash

If duration = NULL, it will result in the crash.

Therefore, fix it.

Change-Id: I7062b78e5f6e83dfd9f34c6719db87b7ca522dae
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
capi/bluetooth.c