diff options
author | graham.gower@gmail.com <graham.gower@gmail.com@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2010-09-20 21:30:51 (EDT) |
---|---|---|
committer | graham.gower@gmail.com <graham.gower@gmail.com@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2010-09-20 21:30:51 (EDT) |
commit | 3cfd512eeae8e66f159957888e38e749e368e302 (patch) | |
tree | 40e0786c8e3c9d7c1c71478182cf375c838c8e95 | |
parent | a12def2ef9f33f024b5cda7f48fc794f48315a5d (diff) |
Remove dead code, sprintf_alloc() cannot fail. Opkg will exit instead.
git-svn-id: http://opkg.googlecode.com/svn/trunk@574 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
-rw-r--r-- | libopkg/opkg_conf.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/libopkg/opkg_conf.c b/libopkg/opkg_conf.c index 9c1ed34..acac1b4 100644 --- a/libopkg/opkg_conf.c +++ b/libopkg/opkg_conf.c @@ -484,11 +484,6 @@ opkg_conf_load(void) else sprintf_alloc (&lock_file, "%s", OPKGLOCKFILE); - if (lock_file == NULL) { - opkg_perror(ERROR, "Could not allocate memory for lock file name"); - goto err2; - } - lock_fd = creat(lock_file, S_IRUSR | S_IWUSR | S_IRGRP); if (lock_fd == -1) { opkg_perror(ERROR, "Could not create lock file %s", lock_file); |