~ubuntu-branches/debian/jessie/file-roller/jessie

« back to all changes in this revision

Viewing changes to src/java-utils.c

  • Committer: Package Import Robot
  • Author(s): Michael Biebl, Josselin Mouette, Michael Biebl
  • Date: 2011-10-13 22:43:53 UTC
  • mfrom: (5.1.5 experimental)
  • Revision ID: package-import@ubuntu.com-20111013224353-7fub412oa8jwkcgt
Tags: 3.0.2-2
[ Josselin Mouette ]
* file-roller.mime: dropped. We don’t do necromancy anymore.
* Drop desktop-check-mime-types call too.

[ Michael Biebl ]
* Upload to unstable.
* debian/control.in:
  - Set pkg-gnome-maintainers@lists.alioth.debian.org as Maintainer.
* debian/watch:
  - Switch to .xz tarballs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 *  GNU General Public License for more details.
17
17
 *
18
18
 *  You should have received a copy of the GNU General Public License
19
 
 *  along with this program; if not, write to the Free Software
20
 
 *  Foundation, Inc., 59 Temple Street #330, Boston, MA 02111-1307, USA.
 
19
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
21
20
 */
22
21
 
23
22
#include <fcntl.h>
162
161
                case CONST_CLASS:
163
162
                        class = g_new0 (struct class_info, 1);
164
163
                        class->index = i + 1;
165
 
                        if (read (cfile->fd, &class->name_index, 2) != 2)
 
164
                        if (read (cfile->fd, &class->name_index, 2) != 2) {
 
165
                                g_free (class);
166
166
                                return; /* error reading */
 
167
                        }
167
168
                        class->name_index = GUINT16_FROM_BE (class->name_index);
168
169
                        cfile->const_pool_class = g_slist_append (cfile->const_pool_class, class);
169
170
                        break;
207
208
                case CONST_UTF8:
208
209
                        txt = g_new0 (struct utf_string, 1);
209
210
                        txt->index = i + 1;
210
 
                        if (read (cfile->fd, &(txt->length), 2) == -1)
 
211
                        if (read (cfile->fd, &(txt->length), 2) == -1) {
 
212
                                g_free (txt);
211
213
                                return; /* error while reading */
 
214
                        }
212
215
                        txt->length = GUINT16_FROM_BE (txt->length);
213
216
                        txt->str = g_new0 (char, txt->length);
214
 
                        if (read (cfile->fd, txt->str, txt->length) == -1)
 
217
                        if (read (cfile->fd, txt->str, txt->length) == -1) {
 
218
                                g_free (txt);
215
219
                                return; /* error while reading */
 
220
                        }
216
221
                        cfile->const_pool_utf = g_slist_append (cfile->const_pool_utf, txt);
217
222
                        break;
218
223