diff options
author | graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2009-11-12 21:57:43 (EST) |
---|---|---|
committer | graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2009-11-12 21:57:43 (EST) |
commit | 51e968e4ddffd4acd7c71e4976e1254a590f2217 (patch) | |
tree | 450eb0cb4c2f44a0ec5f207d6ebaaf607c0c8a7d /libopkg/pkg_dest.c | |
parent | 1052b2193d46d5c1251eb0e9285555f868ba543b (diff) |
Remove status_file_tmp_name. This code does not improve robustness.
git-svn-id: http://opkg.googlecode.com/svn/trunk@296 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libopkg/pkg_dest.c')
-rw-r--r-- | libopkg/pkg_dest.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/libopkg/pkg_dest.c b/libopkg/pkg_dest.c index b1b502a..2adaf62 100644 --- a/libopkg/pkg_dest.c +++ b/libopkg/pkg_dest.c @@ -56,9 +56,6 @@ int pkg_dest_init(pkg_dest_t *dest, const char *name, const char *root_dir,const sprintf_alloc(&dest->status_file_name, "%s/%s", dest->opkg_dir, OPKG_STATUS_FILE_SUFFIX); - sprintf_alloc(&dest->status_file_tmp_name, "%s/%s.tmp", - dest->opkg_dir, OPKG_STATUS_FILE_SUFFIX); - dest->status_file = NULL; return 0; @@ -84,9 +81,6 @@ void pkg_dest_deinit(pkg_dest_t *dest) free(dest->status_file_name); dest->status_file_name = NULL; - free(dest->status_file_tmp_name); - dest->status_file_tmp_name = NULL; - if (dest->status_file) { fclose(dest->status_file); } |