Package: python2.3-gdchart2
Version: 0.beta1-3ubuntu1
Followup-For: Bug #301563


Using Ubuntu currently, so this was actually fixed and tested on that
system. But it is still debian so...

I tested this fix with both python2.3 and python2.4. It was a classic
mistake of using '=' instead of '==' in a conditional. Unified diff
attached that fixes the issue.

-- System Information:
Debian Release: testing/unstable
  APT prefers dapper-updates
  APT policy: (990, 'dapper-updates'), (990, 'dapper-security'), (990, 
'dapper-backports'), (990, 'dapper')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.15-27-k7
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages python2.3-gdchart2 depends on:
ii  libc6                  2.3.6-0ubuntu20   GNU C Library: Shared libraries an
ii  libfreetype6           2.1.10-1ubuntu2.2 FreeType 2 font engine, shared lib
ii  libgd2-xpm             2.0.33-2ubuntu5.1 GD Graphics Library version 2
ii  libgdchart-gd2-xpm     0.11.5-3          Generate graphs using the GD libra
ii  libjpeg62              6b-11             The Independent JPEG Group's JPEG 
ii  libpng12-0             1.2.8rel-5        PNG library - runtime
ii  python2.3              2.3.5-9ubuntu1.2  An interactive high-level object-o
ii  zlib1g                 1:1.2.3-6ubuntu4  compression library - runtime

python2.3-gdchart2 recommends no packages.

-- no debconf information
--- _gdchartc.c.orig    2006-11-06 23:25:51.000000000 -0500
+++ _gdchartc.c 2006-11-06 23:27:29.000000000 -0500
@@ -713,7 +713,7 @@
         if (pstr == NULL)
             goto cleanup;
         slen = PyString_Size(pstr);
-        if ((slen = 0))
+        if (slen == 0)
             goto cleanup;
         mem = malloc((size_t)slen+1);
         if (mem == NULL){

Reply via email to