aboutsummaryrefslogtreecommitdiff
path: root/deps
diff options
context:
space:
mode:
Diffstat (limited to 'deps')
-rw-r--r--deps/sysobj_early/src/util_sysobj.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/deps/sysobj_early/src/util_sysobj.c b/deps/sysobj_early/src/util_sysobj.c
index de3ec8b2..94f71944 100644
--- a/deps/sysobj_early/src/util_sysobj.c
+++ b/deps/sysobj_early/src/util_sysobj.c
@@ -100,7 +100,7 @@ int util_get_did(gchar *str, const gchar *lbl) {
gchar tmpfmt[128] = "";
gchar tmpchk[128] = "";
sprintf(tmpfmt, "%s%s", lbl, "%d");
- if ( sscanf(str, tmpfmt, &id) ) {
+ if ( sscanf(str, tmpfmt, &id)==1 ) {
sprintf(tmpchk, tmpfmt, id);
if ( SEQ(str, tmpchk) )
return id;