Fixed a number of uses of uninitialized variables by adding assertions

or other sanity checks, code reshuffling, or fixing broken behavior.
This commit is contained in:
Kees van Reeuwijk
2010-01-27 10:23:58 +00:00
parent c6eb51d66a
commit 2ba237cd4e
14 changed files with 35 additions and 20 deletions
+1 -2
View File
@@ -446,7 +446,7 @@ PUBLIC int do_semop(message *m)
struct sembuf *sops;
unsigned int nsops;
struct sem_struct *sem;
int no_reply;
int no_reply = 0;
id = m->SEMOP_ID;
nsops = (unsigned int) m->SEMOP_SIZE;
@@ -515,7 +515,6 @@ PUBLIC int do_semop(message *m)
}
/* there will be no errors left, so we can go ahead */
no_reply = 0;
for (i = 0; i < nsops; i++) {
struct semaphore *s;
int op_n;