Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/dist/dhcp/omapip Ensure name_str is initialized because we t...
details: https://anonhg.NetBSD.org/src/rev/0f41c293a967
branches: trunk
changeset: 581500:0f41c293a967
user: lukem <lukem%NetBSD.org@localhost>
date: Thu Jun 02 05:33:01 2005 +0000
description:
Ensure name_str is initialized because we try to free it later.
Detected with gcc -Wuninitialized.
diffstat:
dist/dhcp/omapip/connection.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 9f73a5d6b658 -r 0f41c293a967 dist/dhcp/omapip/connection.c
--- a/dist/dhcp/omapip/connection.c Thu Jun 02 05:30:12 2005 +0000
+++ b/dist/dhcp/omapip/connection.c Thu Jun 02 05:33:01 2005 +0000
@@ -711,7 +711,7 @@
omapi_value_t *algorithm = (omapi_value_t *)0;
omapi_value_t *key = (omapi_value_t *)0;
int algorithm_id;
- char *name_str;
+ char *name_str = NULL;
isc_result_t status = ISC_R_SUCCESS;
if (status == ISC_R_SUCCESS)
Home |
Main Index |
Thread Index |
Old Index