Tk Source Code

View Ticket
Login
Ticket UUID: 3565533
Title: uninitialized variable "written"
Type: Bug Version: obsolete: 8.6b3
Submitter: dgp Created on: 2012-09-07 13:15:34
Subsystem: 06. Canvas Postscript Assigned To: dkf
Priority: 7 High Severity:
Status: Closed Last Modified: 2012-09-07 20:43:23
Resolution: Fixed Closed By: dkf
    Closed on: 2012-09-07 13:43:23
Description:
Got a compiler warning:

tkCanvPs.c: In function ‘TkCanvPostscriptCmd’:
tkCanvPs.c:173: warning: ‘written’ may be used uninitialized in this function

Looking at lines 614-619, I think the warning is in
fact pointing out a programming error.  Shouldn't
"written" be storing the value returned by the
Tcl_WriteObj() call?
User Comments: dkf added on 2012-09-07 20:43:23:

allow_comments - 1