Revision 5a987f25

View differences:

include/Quota.h
182 182
     *    @param va limits for the new quota if 0 limits will be 0
183 183
     *    @param default_allowed whether or not the limit -1 is allowed
184 184
     *
185
     *    @return a new attribute representing the quota
185
     *    @return a new attribute representing the quota, 0 on error
186 186
     */
187 187
    VectorAttribute * new_quota(VectorAttribute* va, bool default_allowed);
188 188

  
src/um/Quota.cc
413 413
        if ( (default_allowed && limit_i < -1) ||
414 414
             (!default_allowed && limit_i < 0) )
415 415
        {
416
            limit = "0";
416
            return 0;
417 417
        }
418 418

  
419 419
        limits.insert(make_pair(metrics[i], limit));

Also available in: Unified diff