Why is the compiler giving a warning that a pointer may be uninitialized when it's going to be initialized and won't the pointer update?

后端 未结 0 1279
感情败类
感情败类 2020-12-24 10:17
    char *s, *p = s;
    size_t len = 0;

    while (str[len++]);

    s = malloc(sizeof(*s) * (len + 1));

How

相关标签:
回答
  • 消灭零回复
提交回复
热议问题