]> git.tuebingen.mpg.de Git - paraslash.git/commit
blob_get_name_by_id(): Treat id of dummy row as invalid.
authorAndre Noll <maan@tuebingen.mpg.de>
Sat, 26 Mar 2016 22:28:27 +0000 (22:28 +0000)
committerAndre Noll <maan@tuebingen.mpg.de>
Tue, 3 May 2016 23:00:34 +0000 (01:00 +0200)
commit7c007561e7031f5e33b91a8baf51bb952693a2d0
tree78577fe857a86dc1ed7e5e0119063c3e001944b7
parenta23e12ae76608a7ba3d333d8d76d5bbba0ba3ef0
blob_get_name_by_id(): Treat id of dummy row as invalid.

If the given id equals the id of the dummy row, the function currently
returns an empty object. This is unfortunate, since blob table users
should not know about the dummy row implementation detail. This patch
makes the function return -E_DUMMY_ROW instead.

In error.h, the E_DUMMY_ROW error code was defined in the section
for mood.c because this file contains the only user of the error
code. With another user in blob.c it seems appropriate to move it to
the blob section instead.
blob.c
error.h