Messages in this thread Patch in this message | | | Date | Tue, 16 Nov 1999 11:57:45 -0500 | From | James Manning <> | Subject | [uPATCH] 2.3.28 possible use of uninitialized value |
| |
This prevents a silly compiler warning about nsems getting used uninitialized... since the possible use in ipc_free at line 625 is protected by a condition that can't happen in the one case where nsems isn't initialized (at line 505), this is more about the compiler not noticing this than anything else, but it clears a warning nonetheless (egcs 1.1.2)
James
--- linux/ipc/sem.c.orig Mon Nov 15 19:12:54 1999 +++ linux/ipc/sem.c Mon Nov 15 19:13:00 1999 @@ -488,7 +488,7 @@ int err; ushort fast_sem_io[SEMMSL_FAST]; ushort* sem_io = fast_sem_io; - int nsems; + int nsems = 0;
sma = sem_lock(semid); if(sma==NULL) - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |