[xdebug-dev] xdebug xdebug/xdebug_handler_dbgp.c - Fixed two valgrind errors. One was an uninitialized value, the other

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Mon, 16 Oct 2006 22:08:58 +0200

Date: Mon Oct 16 22:08:57 CEST 2006
User: Derick Rethans
Directory: xdebug

Log Message:
[0.25]
- Fixed two valgrind errors. One was an uninitialized value, the other
  a free of static data.

Modified files:
           xdebug/xdebug_handler_dbgp.c (version: 1.100)

[FILE: /xdebug/xdebug_handler_dbgp.c]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.99
retrieving revision 1.100
diff -u -r1.99 -r1.100
--- xdebug/xdebug_handler_dbgp.c:1.99 Sat Oct 07 21:10:32 2006 GMT
+++ xdebug/xdebug_handler_dbgp.c Mon Oct 16 18:08:57 2006 GMT
@@ -1023,6 +1023,7 @@
         brk_info->type = NULL;
         brk_info->file = NULL;
         brk_info->file_len = 0;
+ brk_info->lineno = 0;
         brk_info->classname = NULL;
         brk_info->functionname = NULL;
         brk_info->function_break_type = 0;
@@ -2061,7 +2062,7 @@
 
 char *xdebug_dbgp_get_revision(void)
 {
- return "$Revision: 1.99 $";
+ return "$Revision: 1.100 $";
 }
 
 int xdebug_dbgp_cmdloop(xdebug_con *context TSRMLS_DC)
@@ -2295,7 +2296,7 @@
 
         response = xdebug_xml_node_init("response");
         xdebug_xml_add_attribute_ex(response, "command", XG(lastcmd), 0, 0);
- xdebug_xml_add_attribute_ex(response, "transaction_id", XG(lasttransid), 0, 1);
+ xdebug_xml_add_attribute_ex(response, "transaction_id", XG(lasttransid), 0, 0);
         xdebug_xml_add_attribute(response, "status", xdebug_dbgp_status_strings[XG(status)]);
         xdebug_xml_add_attribute(response, "reason", xdebug_dbgp_reason_strings[XG(reason)]);
 
Received on Mon Oct 16 2006 - 22:09:00 BST

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST