summaryrefslogtreecommitdiffstats
path: root/sys-utils/ipcrm.c
diff options
context:
space:
mode:
authorBernhard Voelker2012-09-05 15:12:01 +0200
committerKarel Zak2012-10-02 10:01:51 +0200
commitb83b9b11c2563e52280d041e9b18e7cc41561636 (patch)
tree4b4908208cb846cdf0437f2078d749c21ca041e1 /sys-utils/ipcrm.c
parentblkdiscard: add new command (diff)
downloadkernel-qcow2-util-linux-b83b9b11c2563e52280d041e9b18e7cc41561636.tar.gz
kernel-qcow2-util-linux-b83b9b11c2563e52280d041e9b18e7cc41561636.tar.xz
kernel-qcow2-util-linux-b83b9b11c2563e52280d041e9b18e7cc41561636.zip
ipcrm: avoid 'uninitialized' warning
GCC 4.1.2 on SLES 10.4: sys-utils/ipcrm.c: In function ‘main’: sys-utils/ipcrm.c:297: warning: ‘what_all’ may be used uninitialized in this function * sys-utils/ipcrm.c: Initialize what_all to ALL. Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
Diffstat (limited to 'sys-utils/ipcrm.c')
-rw-r--r--sys-utils/ipcrm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/ipcrm.c b/sys-utils/ipcrm.c
index 7807bd437..6a1ac0d6e 100644
--- a/sys-utils/ipcrm.c
+++ b/sys-utils/ipcrm.c
@@ -294,7 +294,7 @@ int main(int argc, char **argv)
int id = -1;
int iskey;
int rm_all = 0;
- type_id what_all;
+ type_id what_all = ALL;
static const struct option longopts[] = {
{"shmem-id", required_argument, NULL, 'm'},