summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-11-24 17:28:19 -0500
committerEric S. Raymond <esr@thyrsus.com>2013-11-24 17:28:19 -0500
commit0672e13367c4347a7a13577b460d042b232be5c1 (patch)
treed3ca3613f47eaa87d27be8573a3b4eac3182dc5c /gpsd.c
parent7d06e770d5f4f8e903a5720a924a93901a140a69 (diff)
downloadgpsd-0672e13367c4347a7a13577b460d042b232be5c1.tar.gz
splint fixups - no logic changes.
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gpsd.c b/gpsd.c
index d7fce5f8..22fe14f9 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -2047,10 +2047,12 @@ int main(int argc, char *argv[])
* of any compromises in the code. It requires that all GPS
* devices have their group read/write permissions set.
*/
+ /*@-nullpass@*/
if (setgroups(0, NULL) != 0)
gpsd_report(context.debug, LOG_ERROR,
"setgroups() failed, errno %s\n",
strerror(errno));
+ /*@+nullpass@*/
/*@-type@*/
#ifdef GPSD_GROUP
{