Re: Core dump: input and output file name is identical



On Thu, 2005-10-13 at 21:12 +0200, Till Dörges wrote:
Hello folks,

dia (version 0.94) crashes (core dump) if input and output name are
identical:

dia --version
Dia version 0.94, compiled 14:27:44 Oct  6 2005


dia -e test.dia -t png test.dia

** (dia-python:21528): WARNING **: No attribute type ((nil)) or no
data((nil)) in this attribute

** ERROR **: dia error: input and output file name is identical: test.dia
aborting...

I see, somebody used g_error() to mean 'somebody used this program
wrong' rather than 'this program has a fatal bug'.  g_error always
crashes the program, by design.  Changed to g_critical + exit().

-Lars

-- 
Lars Clausen <lars raeder dk>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]