summaryrefslogtreecommitdiff
path: root/libdde_linux26
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2013-06-29 22:13:16 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-06-29 22:13:16 +0200
commitb8fa4e0ea428454a59ff887e925f519a01f6294c (patch)
treeb0da2d9699da8886092f3218319a5f820420c589 /libdde_linux26
parent857e0426ffbf76ca2179b4632c81e470172eeef5 (diff)
procfs: keep old config values if the parsing fails
Previously if strtol failed the previous configuration value would get overwritten. Prevent this by storing the result in a temporary variable and update the configuration if the argument was parsed correctly and passed the sanity checks. * procfs/main.c (argp_parser): Keep old configuration in case a malformed value is encountered.
Diffstat (limited to 'libdde_linux26')
0 files changed, 0 insertions, 0 deletions