Skip to content

Commit

Permalink
BugID:19221306: whitescan problem fixing
Browse files Browse the repository at this point in the history
Change-Id: I86b5c33335bedd13b502f72368005a392cf84acb
Reviewed-on: http://yuncode.alibaba-inc.com/197345
Tested-by: 李诚 lc122798 <[email protected]>
Reviewed-by: 万国建 william.wgj <[email protected]>
  • Loading branch information
“‘辰奇 authored and Cheng-SG committed Mar 11, 2019
1 parent d8806aa commit 4102dfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion middleware/ulocation/uloc_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ int uloc_update_gpsinfo(location_t * lo)
int rlt = -1;
rlt = uloc_hal_get_gps(&lo);

if (is_same_spot(&inv_loc, lo))
if (lo == NULL || is_same_spot(&inv_loc, lo))
{
return -1;
}
Expand Down

0 comments on commit 4102dfa

Please sign in to comment.