YANBU, the way some people on this thread have been going on you'd think this was the only food your DD had been offered all day.
Assuming the child has had breakfast, lunch and dinner (including pudding) as well as possibly having other snacks through the day, they are very unlikely to be truly hungry to the point of needing food.
Why do some people think children need to constantly be eating and tbh why is it a bad thing for a child to feel a little bit of hunger occasionally? The OPs DD has not gone to bed with an empty stomach, having not eaten for hours and hours, she's had dinner and gone to bed a couple of hours later. There is no need to eat again, just a preference for a snack. Learning how to understand your own body's hunger cues are an important skill to learn - often we think we are hungry when actually we are just thirsty, so I have always answered DDs "I'm hungry" claims with "Get yourself a drink and once you've finished it give it 15 minutes to see if it passes.
I had weight loss surgery last year and it massively changed how I think about food - we have turned into a real snacking culture, people are always eating or snacking throughout the day. Since surgery I don't get physical hunger cues, but I do still get mental ones. I will often find myself heading into the kitchen at some point between meals to make myself something to eat, not because I'm actually hungry, but because my head is telling me I'm hungry. Even though I have no other physical hunger cues nor has it been long since I last ate, I often feel like I should be eating because "I haven't had anything since lunch which was only a couple of hours ago so I should eat something".
As a child we got breakfast, lunch, a piece of fruit when we got home from school and tea. There were no "snacks for school", no regular "just because snacks", no "before bed snacks" ... and nobody starved to death. My parents bought biscuits, crisps, cakes etc but they were not every day occurrences.
It wasn't because my parents were strict or rationed food, it was just because we were a family of six and my mother couldn't afford to buy unlimited snacks for four kids. In our house we knew that once something was gone then there was no more till next week's shopping trip, so if we had a pack of 12 biscuit bars then we all got two each. If you chose to eat yours on the first two days then that fine but you wouldn't get any more until the following week. If you chucked one in the bin because you didn't want it after the first bite then you still wouldn't get another one until the following week as mum couldn't magic an extra one out of thin air and nobody else was going to lose out just because of your actions.
Sometimes we might go to bed and maybe feel a bit peckish but we were perfectly able to make it to the next morning without eating. If something had been provided then we'd probably have eaten it but it would have been for the sake of eating it rather than because we were so hungry we couldn't sleep.