<?xml version="1.0" encoding="UTF-8"?>
<ticket>
  <assigned-user-id type="integer">12849</assigned-user-id>
  <attachments-count type="integer">0</attachments-count>
  <closed type="boolean">false</closed>
  <created-at type="datetime">2009-06-24T17:07:18+02:00</created-at>
  <creator-id type="integer">36343</creator-id>
  <milestone-due-on type="datetime" nil="true"></milestone-due-on>
  <milestone-id type="integer" nil="true"></milestone-id>
  <number type="integer">49</number>
  <permalink>lm_utils_get_localtime-uses-tm_gmtoff-uninitialized</permalink>
  <priority type="integer">6</priority>
  <project-id type="integer">17276</project-id>
  <raw-data type="binary" nil="true" encoding="base64"></raw-data>
  <state>new</state>
  <tag nil="true"></tag>
  <title>lm_utils_get_localtime() uses tm_gmtoff uninitialized</title>
  <updated-at type="datetime">2009-06-24T17:07:23+02:00</updated-at>
  <user-id type="integer">36343</user-id>
  <user-name>wjt</user-name>
  <creator-name>wjt</creator-name>
  <assigned-user-name>Kirk Haines</assigned-user-name>
  <url>http://loudmouth.lighthouseapp.com/projects/17276/tickets/49</url>
  <original-body>Hi,

I just noticed that lm_utils_get_localtime fills in a few fields of an uninitialized, stack-allocated time_t, then uses the tm_gmtoff field without ever initializing it. This is never going to work. :-) Surely the function could be basically replaced by strptime()?</original-body>
  <latest-body>Hi,

I just noticed that lm_utils_get_localtime fills in a few fields of an uninitialized, stack-allocated time_t, then uses the tm_gmtoff field without ever initializing it. This is never going to work. :-) Surely the function could be basically replaced by strptime()?</latest-body>
  <original-body-html>&lt;div&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I just noticed that lm_utils_get_localtime fills in a few fields
of an uninitialized, stack-allocated time_t, then uses the
tm_gmtoff field without ever initializing it. This is never going
to work. :-) Surely the function could be basically replaced by
strptime()?&lt;/p&gt;&lt;/div&gt;</original-body-html>
  <versions type="array">
    <version type="Ticket::Version">
      <assigned-user-id type="integer">12849</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Hi,

I just noticed that lm_utils_get_localtime fills in a few fields of an uninitialized, stack-allocated time_t, then uses the tm_gmtoff field without ever initializing it. This is never going to work. :-) Surely the function could be basically replaced by strptime()?</body>
      <body-html>&lt;div&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I just noticed that lm_utils_get_localtime fills in a few fields
of an uninitialized, stack-allocated time_t, then uses the
tm_gmtoff field without ever initializing it. This is never going
to work. :-) Surely the function could be basically replaced by
strptime()?&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-06-24T17:07:18+02:00</created-at>
      <creator-id type="integer">36343</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">49</number>
      <permalink>lm_utils_get_localtime-uses-tm_gmtoff-uninitialized</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">17276</project-id>
      <state>new</state>
      <tag nil="true"></tag>
      <title>lm_utils_get_localtime() uses tm_gmtoff uninitialized</title>
      <updated-at type="datetime">2009-06-24T17:07:23+02:00</updated-at>
      <user-id type="integer">36343</user-id>
      <user-name>wjt</user-name>
      <creator-name>wjt</creator-name>
      <assigned-user-name>Kirk Haines</assigned-user-name>
      <url>http://loudmouth.lighthouseapp.com/projects/17276/tickets/49</url>
    </version>
  </versions>
</ticket>
