Add an assert() to LogCommandLine to catch the case where it is
called without a command line to log.
Change-Id: Ia1be28b3a1d1d4e144626976f0f82b9675809c0a
Reviewed-on: http://gerrit.openafs.org/7072
Reviewed-by: Derrick Brashear <shadow@dementix.org>
Tested-by: Derrick Brashear <shadow@dementix.org>
#include <afs/procmgmt.h> /* signal(), kill(), wait(), etc. */
#include <roken.h> /* Must come after procmgmt.h */
+#include <afs/opr.h>
#include "afsutil.h"
#include "fileutil.h"
int i, l;
char *commandLine, *cx;
+ opr_Assert(argc != 0);
+
for (l = i = 0; i < argc; i++)
l += strlen(argv[i]) + 1;
if ((commandLine = malloc(l))) {