zhengzkkai / opkg

Automatically exported from code.google.com/p/opkg
0 stars 0 forks source link

opkg segfaults with no options #48

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I exported opkg version 0.1.8 and compiled it for powerpc.

When "opkg" is executed without any options, it segfaults.

In opkg-cl.c the "cmd_name" variable is used prior to initialisation in the
error message that would be produced. It happens to work on x86 because it
initialises pointers to NULL, but segfaults on powerpc.

Attached is a patch that fixes the problem.

Original issue reported on code.google.com by aman...@gmail.com on 8 Apr 2010 at 5:46

Attachments:

GoogleCodeExporter commented 9 years ago
Applied as r528. Thanks.

Original comment by graham.g...@gmail.com on 13 Apr 2010 at 11:20

GoogleCodeExporter commented 9 years ago

Original comment by graham.g...@gmail.com on 13 Apr 2010 at 11:21