]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
config: update __isarg before reading config param
authorYehuda Sadeh <yehuda@hq.newdream.net>
Tue, 29 Jun 2010 23:23:27 +0000 (16:23 -0700)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Wed, 30 Jun 2010 00:23:18 +0000 (17:23 -0700)
src/config.h

index d41f33b7d8b74f8ba7e97039fb74df856e9fa469..43b363a17a23344a1942eb4eb13902a13abc7bc2 100644 (file)
@@ -454,6 +454,7 @@ ExportControl *conf_get_export_control();
 
 #define CONF_SAFE_SET_ARG_VAL(dest, type) \
        do { \
+          __isarg = i+1 < args.size(); \
           if (type == OPT_BOOL) { \
                if (val_pos) { \
                        CONF_SET_ARG_VAL(dest, type); \