Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
0 points
Yajirobe
3y ago
0 comments
Share
goto statement in something as important as sudo? Seriously? Talk about bad practices.
undefined | Better HN
0 comments
default
newest
oldest
arc-in-space
3y ago
goto to a cleanup/error handling block at the end of a function is a fairly common C idiom
Reubensson
3y ago
Don't really see a problem using goto there. Simplyfies control flow and error handling. Assuming we are talking about same piece of code.
aflag
3y ago
I think if you read the kennel's code you're in to a big surprise.
jazzyjackson
3y ago
just because something's old doesn't mean it's bad
j
/
k
navigate · click thread line to collapse