Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

11
  • 2
    Where are you allocating memory for the struct? Commented May 21, 2020 at 17:16
  • 1
    No repro. repl.it/@robertwharvey/LoathsomeCostlyReentrant Commented May 21, 2020 at 17:16
  • @RobertHarvey hi , u mean it works? no repro? you mean i should just put a link to executable online ide? Commented May 21, 2020 at 17:18
  • Well... I'm inclined to agree with Tony. You're not allocating memory for struct s_string_array *d; Commented May 21, 2020 at 17:19
  • So it might be UB. Commented May 21, 2020 at 17:19