Skip to content

Commit

Permalink
lib/srdb1: init timeval structs to silent analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Jul 3, 2020
1 parent d0d2c8f commit 0780e78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/srdb1/db_query.c
Expand Up @@ -13,8 +13,8 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
Expand Down Expand Up @@ -46,7 +46,7 @@ static inline int db_do_submit_query(const db1_con_t* _h, const str *_query,
int (*submit_query)(const db1_con_t*, const str*))
{
int ret;
struct timeval tvb, tve;
struct timeval tvb = {0}, tve = {0};
struct timezone tz;
unsigned int tdiff;

Expand Down

0 comments on commit 0780e78

Please sign in to comment.