chiark / gitweb /
locking: Fix uninitialized variable.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 2 Mar 2006 01:47:24 +0000 (01:47 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 2 Mar 2006 01:47:24 +0000 (01:47 +0000)
Could cause bizarre effects with SIGALRM.

locking.c

index cf2917a6008ca5c3f1b6578ed64e13ea91bec660..cd4e81d898eb06e011d43ddeea2038b0811af392 100644 (file)
--- a/locking.c
+++ b/locking.c
@@ -96,7 +96,7 @@ int main(int argc, char *argv[])
   struct flock l;
   char *p;
   int t = -1;
-  unsigned int ot;
+  unsigned int ot = 0;
   time_t nt;
   pid_t kid;
   int st;