From: kj7.sung Date: Thu, 12 Oct 2017 10:10:23 +0000 (+0900) Subject: Coverity issue X-Git-Tag: accepted/tizen/unified/20171013.193118^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F31%2F155231%2F1;p=platform%2Fadaptation%2Fartik%2Flbs-plugin-gps-artik7.git Coverity issue Change-Id: I9c9ee0e4c8b980ede55eb5c47ba8cccdf2a817f6 Signed-off-by: kj7.sung --- diff --git a/gps-plugin/src/nmea_parser.c b/gps-plugin/src/nmea_parser.c index 6beafc5..5b042e0 100644 --- a/gps-plugin/src/nmea_parser.c +++ b/gps-plugin/src/nmea_parser.c @@ -3,9 +3,6 @@ * * Copyright (c) 2011-2013 Samsung Electronics Co., Ltd. All rights reserved. * - * Contact: Youngae Kang , Minjune Kim - * Genie Kim - * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -344,6 +341,8 @@ int nmea_parser_sentence(char *sentence, char *token[], pos_data_t *pos, sv_data int nmea_parser(char *data, pos_data_t *pos, sv_data_t *sv) { + if (!data) return READ_ERROR; + int ret = READ_SUCCESS; read_error_t err; int num_sen = 0;