1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-04-05 10:17:03 +00:00

Make Coverity Scan happy

This commit is contained in:
Carles Fernandez 2018-05-19 20:42:50 +02:00
parent b4cc22abc2
commit 2b7ccc11b9
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -121,6 +121,7 @@ serial_t *openserial(const char *path, int mode, char *msg)
s_aux.resize(128, '\0');
int n = s_aux.length();
for (int i = 0; i < n; i++) dev[i] = s_aux[i];
if (n == 0) dev[0] = '\0';
if ((mode & STR_MODE_R) && (mode & STR_MODE_W))
rw = O_RDWR;