public inbox for [email protected]  
help / color / mirror / Atom feed
uninitialized var in encnames.c
2+ messages / 1 participants
[nested] [flat]

* uninitialized var in encnames.c
@ 2026-01-15 08:00 ma lz <[email protected]>
  2026-01-15 08:06 ` 回复: uninitialized var in encnames.c  ma lz <[email protected]>
  0 siblings, 1 reply; 2+ messages in thread

From: ma lz @ 2026-01-15 08:00 UTC (permalink / raw)
  To: [email protected] <[email protected]>

int
pg_char_to_encoding(const char *name)
{

    char        buff[NAMEDATALEN], // ------------------ UNINITIALIZED


    key = clean_encoding_name(name, buff);
}


static char *
clean_encoding_name(const char *key, char *newkey)
{
      const char *p;
      char     *np;

      for (p = key, np = newkey; *p != '\0'; p++)
      {
            if (isalnum((unsigned char) *p))
            {
                  if (*p >= 'A' && *p <= 'Z')
                        *np++ = *p + 'a' - 'A';
                  else
                        *np++ = *p;
            }
      }
      *np = '\0';
      return newkey;
}



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* 回复: uninitialized var in encnames.c 
  2026-01-15 08:00 uninitialized var in encnames.c ma lz <[email protected]>
@ 2026-01-15 08:06 ` ma lz <[email protected]>
  0 siblings, 0 replies; 2+ messages in thread

From: ma lz @ 2026-01-15 08:06 UTC (permalink / raw)
  To: [email protected] <[email protected]>

I've made a mistake, please ignore last mail

________________________________
发件人: ma lz
发送时间: 2026年1月15日 16:00
收件人: [email protected] <[email protected]>
主题: uninitialized var in encnames.c

int
pg_char_to_encoding(const char *name)
{

    char        buff[NAMEDATALEN], // ------------------ UNINITIALIZED


    key = clean_encoding_name(name, buff);
}


static char *
clean_encoding_name(const char *key, char *newkey)
{
      const char *p;
      char     *np;

      for (p = key, np = newkey; *p != '\0'; p++)
      {
            if (isalnum((unsigned char) *p))
            {
                  if (*p >= 'A' && *p <= 'Z')
                        *np++ = *p + 'a' - 'A';
                  else
                        *np++ = *p;
            }
      }
      *np = '\0';
      return newkey;
}



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2026-01-15 08:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2026-01-15 08:00 uninitialized var in encnames.c ma lz <[email protected]>
2026-01-15 08:06 ` 回复: uninitialized var in encnames.c  ma lz <[email protected]>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox