]> git.michaelhowe.org Git - packages/o/openafs.git/commit
util: LogCommandLine: argc is an int, so assert that it's positive
authorGarrett Wollman <wollman@csail.mit.edu>
Sun, 15 Jul 2012 18:09:11 +0000 (14:09 -0400)
committerDerrick Brashear <shadow@dementix.org>
Mon, 16 Jul 2012 12:48:12 +0000 (05:48 -0700)
commite194a8b7f811a995e8f7147a12ac4be6e96f873f
tree159306a09b13d737eca44c7d0db97e161c3ae120
parentf4b2ad4dc974b441819d0113efbb81c537b8ed97
util: LogCommandLine: argc is an int, so assert that it's positive

In practice, argc should never be negative, but by convention it's
a signed int, so change the assertion to require it to be positive
rather than merely nonzero to get some help to the static analyzer.

Change-Id: I2d6c00b8ad2f8d573d717f1e2b88a4bb902f125c
Reviewed-on: http://gerrit.openafs.org/7765
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
src/util/serverLog.c