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:
parent
b4cc22abc2
commit
2b7ccc11b9
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user